Examples of toLastChild()


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

      if( WsdlUtils.isAttachmentOutputPart( 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

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

    {
        parentXBean = getRootElement( parentXBean );
        XmlCursor parentCursor = parentXBean.newCursor();

       
        if ( parentCursor.toLastChild() )
        {
            parentCursor.toEndToken();
            parentCursor.toNextToken();
        }
        parentCursor.toEndToken();
View Full Code Here

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

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

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

            Part part = parts[i];

            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()

        for (int i = 0; i < parts.length; i++) {
            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.isAttachmentInputPart(part, bindingOperation)) {
                // TODO - generation of attachment flag could be externalized
                // 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();
                // }
            } else {
View Full Code Here

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

                        // SchemaType type = wsdlContext.getInterfaceDefinition().findType(typeName);
                        SchemaType type = definitionWrapper.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()

                            log.warn("Failed to find type [" + typeName + "]");
                    } else {
                        SchemaGlobalElement element = definitionWrapper.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.