Examples of toNextAttribute()


Examples of org.apache.xmlbeans.XmlCursor.toNextAttribute()

                    if (xc.getName().equals(attributeName))
                    {
                        return xc.getObject();
                    }
                }
                while (xc.toNextAttribute());
            }
            return null;
        }
        finally
        {
View Full Code Here

Examples of org.apache.xmlbeans.XmlCursor.toNextAttribute()

                    if (attributeNameSet.contains(xc.getName()))
                    {
                        result.add(xc.getObject());
                    }
                }
                while (xc.toNextAttribute());
            }

            if (result.size() == 0)
                return EMPTY_RESULT;
            else
View Full Code Here

Examples of org.apache.xmlbeans.XmlCursor.toNextAttribute()

        }
        else
          throw new XmlException( "Illegal attribute!" );
        seen.add( qname );
      }
      while( cursor.toNextAttribute() );
    }
    // Make sure all attributes have been accounted for
    for( QName item : attributes.keySet() )
    {
      if( !seen.contains( item ) && !attributes.get( item ).getAttribute( "use" ).equals( "optional" ) )
View Full Code Here

Examples of org.apache.xmlbeans.XmlCursor.toNextAttribute()

                QName attrName = null;

                XmlCursor c = createCursor();

                if (c.toFirstAttribute() && !c.toNextAttribute())
                    attrName = c.getName();

                c.dispose();

                if (attrName != null)
View Full Code Here

Examples of org.apache.xmlbeans.XmlCursor.toNextAttribute()

        try
        {
            StringBuffer sb = null;

            if (!c.toFirstAttribute() || c.toNextAttribute())
            {
                sb = new StringBuffer();

                sb.append( "The document is not a " );
                sb.append( QNameHelper.pretty( attrName ) );
View Full Code Here

Examples of org.apache.xmlbeans.XmlCursor.toNextAttribute()

        // ./*/notificationSource
        xc.toChild(NOTIFICATION_SRC_QNAME);
        // ./*/notificationSource/@*
        boolean hasAttr = xc.toFirstAttribute();
        while (hasAttr && !WF_TIMESTEP_QNAME.equals(xc.getName())) {
            hasAttr = xc.toNextAttribute();
        }
        if (hasAttr) {
            // ./*/notificationSource/@workflowTimestep
            return Integer.parseInt(xc.getTextValue());
        } else {
View Full Code Here

Examples of org.apache.xmlbeans.XmlCursor.toNextAttribute()

                    if (xc.getName().equals(attributeName))
                    {
                        return xc.getObject();
                    }
                }
                while (xc.toNextAttribute());
            }
            return null;
        }
        finally
        {
View Full Code Here

Examples of org.apache.xmlbeans.XmlCursor.toNextAttribute()

                    if (attributeNameSet.contains(xc.getName()))
                    {
                        result.add(xc.getObject());
                    }
                }
                while (xc.toNextAttribute());
            }

            if (result.size() == 0)
                return EMPTY_RESULT;
            else
View Full Code Here

Examples of org.apache.xmlbeans.XmlCursor.toNextAttribute()

            if ("".equals(namespaceURI) ||
                "http://www.w3.org/2001/XMLSchema".equals(namespaceURI))
                ; // no nothing
            else
                attrList.add(new AttributeImpl(name, cursor.getTextValue())); //add the attribute
            hasAttributes = cursor.toNextAttribute();
        }
        cursor.dispose();
    }

    private SchemaAnnotationImpl(SchemaContainer c)
View Full Code Here

Examples of org.apache.xmlbeans.XmlCursor.toNextAttribute()

                    if (xc.getName().equals(attributeName))
                    {
                        return xc.getObject();
                    }
                }
                while (xc.toNextAttribute());
            }
            return null;
        }
        finally
        {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.