Examples of toLastChild()


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

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

      newChildNode = parentNode.getOwnerDocument(  ).importNode( newChildNode, true ); //
      parentNode.appendChild( newChildNode );

      // get a ref to the XmlObject corresponding to the child we've just added...
      XmlCursor cursor = parent.newCursor(  );
      cursor.toLastChild(  );
      newChild = cursor.getObject(  );
      cursor.dispose(  );
      return newChild;
   }
View Full Code Here

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

   public static XmlObject addChildElement( XmlObject parent,
                                            QName     name )
   {
      parent = getRootElement( parent );
      XmlCursor parentCursor = parent.newCursor(  );
      if ( parentCursor.toLastChild(  ) ) // has children
      {
         parentCursor.toEndToken(  );
         parentCursor.toNextToken(  );
      }
      else // childless
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()

            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 < inputParts.length; i++) {
            Part part = inputParts[i];
            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();
                }
            } else {
View Full Code Here

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

                    if (typeName != null) {
                        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()

                        }
                    } else {
                        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()

        for (int i = 0; i < inputParts.length; i++) {
            Part part = inputParts[i];
            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();
                }
            } else {
View Full Code Here

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

                    if (typeName != null) {
                        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
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.