Package org.apache.xmlbeans

Examples of org.apache.xmlbeans.XmlObject.schemaType()


        try {
            if (findNestedElement(cursor, desiredElement)) {
                XmlObject child = cursor.getObject();
                //The copy seems to be needed to make the type change work for some documents!
                XmlObject result = child.copy().changeType(type);
                assert result.schemaType() == type;
                return result;
            }
        } finally {
            cursor.dispose();
        }
View Full Code Here


        if (errors.size() != 0) {
            throw new XmlException(errors.toArray().toString());
        }

        if (DirDirectoryConfigurationDocument.type.equals(config.schemaType())) {
            validateDD(config);
            return (DirDirectoryConfigurationDocument) config;
        }

        // If we got here, we will fail due to bad XML. We are doing this get an
View Full Code Here

                continue;
            }

            Collection errors = new ArrayList();

            if (xobj.schemaType() == XmlObject.type)
            {
                System.out.println(instanceFiles[i] + " NOT valid.  ");
                System.out.println("  Document type not found." );
            }
            else if (xobj.validate(strict ?
View Full Code Here

                        break;
                    }

                    XmlObject xmlObj = cursor.getObject();
                    SchemaType schemaType = xmlObj.schemaType();
                    if (schemaType.isNoType()) {
                        if (treeModel == null) {
                            treeModel = new XmlObjectTreeModel(messagePart.getSchemaType().getTypeSystem(), rootXmlObject);
                        }
View Full Code Here

                    XmlCursor cursor = include.newCursor();
                    cursor.toParent();
                    XmlObject parentXmlObject = cursor.getObject();
                    cursor.dispose();

                    SchemaType schemaType = parentXmlObject.schemaType();
                    Node parentNode = elm.getParentNode();

                    if (schemaType.isNoType()) {
                        SchemaTypeSystem typeSystem = wsdlRequest.getOperation().getInterface().getWsdlContext()
                                .getSchemaTypeSystem();
View Full Code Here

                        resultType = findXsiType(xsiType);
                    }
                }

                if (resultType == null) {
                    resultType = typeSystem.findType(xo.schemaType().getName());
                }

                if (resultType == null) {
                    resultType = xo.schemaType();
                }
View Full Code Here

                if (resultType == null) {
                    resultType = typeSystem.findType(xo.schemaType().getName());
                }

                if (resultType == null) {
                    resultType = xo.schemaType();
                }

                if (resultType.isNoType()) {
                    QName nm = cursor.getName();
View Full Code Here

                continue;
            }

            Collection errors = new ArrayList();

            if (xobj.schemaType() == XmlObject.type)
            {
                System.out.println(instanceFiles[i] + " NOT valid.  ");
                System.out.println("  Document type not found." );
            }
            else if (xobj.validate(new XmlOptions().setErrorListener(errors)))
View Full Code Here

          throw new RuntimeException("The profile element is empty");
        }

        do {
            XmlObject xmlObject = cursor.getObject();
            if (ProfileSelectType.type.isAssignableFrom(xmlObject.schemaType())) {
              ProfileSelectType nodeData = (ProfileSelectType)xmlObject;

              SelectProfileSelector selector = new SelectProfileSelectorImpl(this, nodeData.getIdref(), nodeData.getSelected());
              result.add(selector);
            } else if (ProfileRefineValueType.type.isAssignableFrom(xmlObject.schemaType())) {
View Full Code Here

            if (ProfileSelectType.type.isAssignableFrom(xmlObject.schemaType())) {
              ProfileSelectType nodeData = (ProfileSelectType)xmlObject;

              SelectProfileSelector selector = new SelectProfileSelectorImpl(this, nodeData.getIdref(), nodeData.getSelected());
              result.add(selector);
            } else if (ProfileRefineValueType.type.isAssignableFrom(xmlObject.schemaType())) {
              ProfileRefineValueType nodeData = (ProfileRefineValueType)xmlObject;

              RefineValueProfileSelector selector = new RefineValueProfileSelectorImpl(this, nodeData.getIdref());
              selector.setSelector(nodeData.getSelector());
              selector.setOperator(ValueImpl.mapOperator(nodeData.getOperator()));
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.