Package org.apache.xmlbeans

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


        }

        if (getPOSIXApplication(value) == null) {
            XmlCursor acursor = application.newCursor();
            acursor.toEndToken();
            acursor.insertElement(POSIX_APPLICATION);
            acursor.dispose();
        }
        return getPOSIXApplication(value);
    }
View Full Code Here


        ApplicationType application = getOrCreateApplication(value);

        if (getSPMDApplication(value) == null) {
            XmlCursor acursor = application.newCursor();
            acursor.toEndToken();
            acursor.insertElement(SPMD_APPLICATION);
            acursor.dispose();
        }
        return getSPMDApplication(value);
    }
View Full Code Here

        }

        if (getHPCProfileApplication(value) == null) {
            XmlCursor acursor = application.newCursor();
            acursor.toEndToken();
            acursor.insertElement(HPC_PROFILE_APPLICATION);
            acursor.dispose();
        }
        return getHPCProfileApplication(value);
    }
View Full Code Here

            parentCursor.toEndToken();
            parentCursor.toNextToken();
        }
        parentCursor.toEndToken();
        xBean = getRootElement( xBean );
        parentCursor.insertElement( getName( xBean ) );
        parentCursor.toPrevSibling();
        XmlObject childXBean = parentCursor.getObject();
        parentCursor.dispose();
        childXBean.set( xBean );
        return childXBean;
View Full Code Here

        if ( xCursor.toLastChild() )
        {
            xCursor.toEndToken();
        }
        xCursor.toNextToken();
        xCursor.insertElement( name );
        xCursor.toPrevSibling();
        XmlObject childXBean = xCursor.getObject();
        xCursor.dispose();
        return childXBean;       
    }
View Full Code Here

                        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();
                        } else
View Full Code Here

                    } 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();
                        } else
View Full Code Here

                        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();
                        } else
View Full Code Here

                    } 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();
                        } else
View Full Code Here

    }
   
    if (getPOSIXApplication(value) == null) {
      XmlCursor acursor = application.newCursor();
      acursor.toEndToken();
      acursor.insertElement(POSIX_APPLICATION);
      acursor.dispose();
    }
    return getPOSIXApplication(value);
  }
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.