Examples of SchemaTypeSystem


Examples of org.apache.xmlbeans.SchemaTypeSystem

            for (int i = 0; i < _searchPath.length; i++)
                if (null != (result = _searchPath[i].findDocumentTypeRef(name)))
                    break;
            if (result == null)
            {
                SchemaTypeSystem ts = typeSystemForComponent("schema/element/", name);
                if (ts != null)
                {
                    result = ts.findDocumentTypeRef(name);
                    if (XmlBeans.ASSERTS)
                        XmlBeans.assertTrue(result != null, "Type system registered element " + QNameHelper.pretty(name) + " but does not contain document type");
                }
            }
            _documentCache.put(name, result);
View Full Code Here

Examples of org.apache.xmlbeans.SchemaTypeSystem

            for (int i = 0; i < _searchPath.length; i++)
                if (null != (result = _searchPath[i].findAttributeTypeRef(name)))
                    break;
            if (result == null)
            {
                SchemaTypeSystem ts = typeSystemForComponent("schema/attribute/", name);
                if (ts != null)
                {
                    result = ts.findAttributeTypeRef(name);
                    if (XmlBeans.ASSERTS)
                        XmlBeans.assertTrue(result != null, "Type system registered attribute " + QNameHelper.pretty(name) + " but does not contain attribute type");
                }
            }
            _attributeCache.put(name, result);
View Full Code Here

Examples of org.apache.xmlbeans.SchemaTypeSystem

            for (int i = 0; i < _searchPath.length; i++)
                if (null != (result = _searchPath[i].findElementRef(name)))
                    break;
            if (result == null)
            {
                SchemaTypeSystem ts = typeSystemForComponent("schema/element/", name);
                if (ts != null)
                {
                    result = ts.findElementRef(name);
                    if (XmlBeans.ASSERTS)
                        XmlBeans.assertTrue(result != null, "Type system registered element " + QNameHelper.pretty(name) + " but does not return it");
                }
            }
            _elementCache.put(name, result);
View Full Code Here

Examples of org.apache.xmlbeans.SchemaTypeSystem

            for (int i = 0; i < _searchPath.length; i++)
                if (null != (result = _searchPath[i].findAttributeRef(name)))
                    break;
            if (result == null)
            {
                SchemaTypeSystem ts = typeSystemForComponent("schema/attribute/", name);
                if (ts != null)
                {
                    result = ts.findAttributeRef(name);
                    if (XmlBeans.ASSERTS)
                        XmlBeans.assertTrue(result != null, "Type system registered attribute " + QNameHelper.pretty(name) + " but does not return it");
                }
            }
            _attributeCache.put(name, result);
View Full Code Here

Examples of org.apache.xmlbeans.SchemaTypeSystem

            for (int i = 0; i < _searchPath.length; i++)
                if (null != (result = _searchPath[i].findModelGroupRef(name)))
                    break;
            if (result == null)
            {
                SchemaTypeSystem ts = typeSystemForComponent("schema/modelgroup/", name);
                if (ts != null)
                {
                    result = ts.findModelGroupRef(name);
                    if (XmlBeans.ASSERTS)
                        XmlBeans.assertTrue(result != null, "Type system registered model group " + QNameHelper.pretty(name) + " but does not return it");
                }
            }
            _modelGroupCache.put(name, result);
View Full Code Here

Examples of org.apache.xmlbeans.SchemaTypeSystem

            for (int i = 0; i < _searchPath.length; i++)
                if (null != (result = _searchPath[i].findAttributeGroupRef(name)))
                    break;
            if (result == null)
            {
                SchemaTypeSystem ts = typeSystemForComponent("schema/attributegroup/", name);
                if (ts != null)
                {
                    result = ts.findAttributeGroupRef(name);
                    if (XmlBeans.ASSERTS)
                        XmlBeans.assertTrue(result != null, "Type system registered attribute group " + QNameHelper.pretty(name) + " but does not return it");
                }
            }
            _attributeGroupCache.put(name, result);
View Full Code Here

Examples of org.apache.xmlbeans.SchemaTypeSystem

            for (int i = 0; i < _searchPath.length; i++)
                if (null != (result = _searchPath[i].findIdentityConstraintRef(name)))
                    break;
            if (result == null)
            {
                SchemaTypeSystem ts = typeSystemForComponent("schema/identityconstraint/", name);
                if (ts != null)
                {
                    result = ts.findIdentityConstraintRef(name);
                    if (XmlBeans.ASSERTS)
                        XmlBeans.assertTrue(result != null, "Type system registered identity constraint " + QNameHelper.pretty(name) + " but does not return it");
                }
            }
            _idConstraintCache.put(name, result);
View Full Code Here

Examples of org.apache.xmlbeans.SchemaTypeSystem

        XmlOptions xmlOptions = new XmlOptions();
        xmlOptions.setErrorListener(errors);
        xmlOptions.setEntityResolver(new JarEntityResolver());
        XmlObject[] schemas = (XmlObject[]) schemaList.toArray(new XmlObject[schemaList.size()]);
        try {
            SchemaTypeSystem schemaTypeSystem = XmlBeans.compileXsd(schemas, basicTypeSystem, xmlOptions);
            if (errors.size() > 0) {
                boolean wasError = false;
                for (Iterator iterator = errors.iterator(); iterator.hasNext();) {
                    XmlError xmlError = (XmlError) iterator.next();
                    if(xmlError.getSeverity() == XmlError.SEVERITY_ERROR) {
View Full Code Here

Examples of org.apache.xmlbeans.SchemaTypeSystem

        Collection errors = new ArrayList();
        XmlOptions xmlOptions = new XmlOptions();
        xmlOptions.setErrorListener(errors);
        XmlObject[] schemas = new XmlObject[] {xmlObject};
        SchemaTypeLoader schemaTypeLoader = XmlBeans.loadXsd(new XmlObject[] {});
        SchemaTypeSystem schemaTypeSystem;
        try {
            schemaTypeSystem = XmlBeans.compileXsd(schemas, schemaTypeLoader, xmlOptions);
            if (errors.size() > 0) {
                throw new DeploymentException("Could not compile schema type system: errors: " + errors);
            }
View Full Code Here

Examples of org.apache.xmlbeans.SchemaTypeSystem

        XmlOptions xmlOptions = new XmlOptions();
        xmlOptions.setErrorListener(errors);
        xmlOptions.setEntityResolver(new JarEntityResolver());
        XmlObject[] schemas = (XmlObject[]) schemaList.toArray(new XmlObject[schemaList.size()]);
        try {
            SchemaTypeSystem schemaTypeSystem = XmlBeans.compileXsd(schemas, basicTypeSystem, xmlOptions);
            if (errors.size() > 0) {
                boolean wasError = false;
                for (Iterator iterator = errors.iterator(); iterator.hasNext();) {
                    XmlError xmlError = (XmlError) iterator.next();
                    if(xmlError.getSeverity() == XmlError.SEVERITY_ERROR) {
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.