Examples of toLastChild()


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

                                             XmlObject xBean )
    {
        parentXBean = getRootElement( parentXBean );
        xBean = getRootElement( xBean );
        XmlCursor parentCursor = parentXBean.newCursor();
        if ( parentCursor.toLastChild() ) // has children
        {
            parentCursor.toEndToken();
            parentCursor.toNextToken();
        }
        else                              // childless
View Full Code Here

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

    public static XmlObject addChildElement( XmlObject parentXBean,
                                             QName name )
    {
        parentXBean = getRootElement( parentXBean );
        XmlCursor parentCursor = parentXBean.newCursor();
        if ( parentCursor.toLastChild() )  // has children
        {
            parentCursor.toEndToken();
            parentCursor.toNextToken();
        }
        else                               // childless
View Full Code Here

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

        ResourcePropertyValueChangeNotificationDocument resourcePropertyValueChangeNotificationDocument = ResourcePropertyValueChangeNotificationDocument.Factory.newInstance();
        ResourcePropertyValueChangeNotificationType resourcePropertyValueChangeNotificationType = resourcePropertyValueChangeNotificationDocument.addNewResourcePropertyValueChangeNotification();
        ResourcePropertyValueChangeNotificationType.OldValue oldValue = resourcePropertyValueChangeNotificationType.addNewOldValue();
        XmlCursor parentCursor = oldValue.newCursor();
        if ( parentCursor.toLastChild() )
        {
            parentCursor.toEndToken();
            parentCursor.toNextToken();
        }
        parentCursor.toEndToken();
View Full Code Here

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

    public static void addChildElement( XmlObject parentXBean,
                                        XmlObject childXBean )
    {
        parentXBean = getRootElement( parentXBean );
        XmlCursor xCursor = parentXBean.newCursor();
        if ( xCursor.toLastChild() )
        {
            xCursor.toEndToken();
        }
        xCursor.toNextToken();
        childXBean = getRootElement( childXBean );
View Full Code Here

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

    public static XmlObject addChildElement( XmlObject parentXBean,
                                             QName childName )
    {
        parentXBean = getRootElement( parentXBean );
        XmlCursor xCursor = parentXBean.newCursor();
        if ( xCursor.toLastChild() )
        {
            xCursor.toEndToken();
        }
        xCursor.toNextToken();
        xCursor.insertElement( childName );
View Full Code Here

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

      Part part = parts[i];
      if( !WsdlUtils.isAttachmentInputPart( part, bindingOperation )
          && ( part.getElementName() != null || part.getTypeName() != null ) )
      {
        XmlCursor c = cursor.newCursor();
        c.toLastChild();
        createElementForPart( part, c, xmlGenerator );
        c.dispose();
      }
    }
  }
View Full Code Here

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

      if( !WsdlUtils.isAttachmentOutputPart( part, bindingOperation )
          && ( part.getElementName() != null || part.getTypeName() != null ) )
      {
        XmlCursor c = cursor.newCursor();
        c.toLastChild();
        createElementForPart( part, c, xmlGenerator );
        c.dispose();
      }
    }
  }
View Full Code Here

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

      if( WsdlUtils.isAttachmentInputPart( part, bindingOperation ) )
      {
        if( iface.getSettings().getBoolean( WsdlSettings.ATTACHMENT_PARTS ) )
        {
          XmlCursor c = cursor.newCursor();
          c.toLastChild();
          c.beginElement( part.getName() );
          c.insertAttributeWithValue( "href", part.getName() + "Attachment" );
          c.dispose();
        }
      }
View Full Code Here

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

            SchemaType type = wsdlContext.getInterfaceDefinition().findType( typeName );

            if( type != null )
            {
              XmlCursor c = cursor.newCursor();
              c.toLastChild();
              c.insertElement( part.getName() );
              c.toPrevToken();

              xmlGenerator.createSampleForType( type, c );
              c.dispose();
View Full Code Here

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

          {
            SchemaGlobalElement element = wsdlContext.getSchemaTypeLoader().findElement( part.getElementName() );
            if( element != null )
            {
              XmlCursor c = cursor.newCursor();
              c.toLastChild();
              c.insertElement( element.getName() );
              c.toPrevToken();

              xmlGenerator.createSampleForType( element.getType(), c );
              c.dispose();
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.