Package org.apache.xmlbeans.impl.schema
Class SchemaTypeLoaderBase
java.lang.Object
org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase
- All Implemented Interfaces:
SchemaTypeLoader
- Direct Known Subclasses:
BuiltinSchemaTypeSystem,SchemaTypeLoaderImpl,SchemaTypeSystemImpl,SoapEncSchemaTypeSystem,XQuerySchemaTypeSystem
public abstract class SchemaTypeLoaderBase extends Object implements SchemaTypeLoader
-
Constructor Summary
Constructors Constructor Description SchemaTypeLoaderBase() -
Method Summary
Modifier and Type Method Description StringcompilePath(String pathExpr)StringcompilePath(String pathExpr, XmlOptions options)Compiles an XPathStringcompileQuery(String queryExpr)StringcompileQuery(String queryExpr, XmlOptions options)Compiles an XQuerySchemaGlobalAttributefindAttribute(QName name)Returns the global attribute defintion with the given name, or null if none.SchemaAttributeGroupfindAttributeGroup(QName name)Returns the attribute group defintion with the given name, or null if none.SchemaTypefindAttributeType(QName name)Returns the attribute type containing the given attribute name, or null if none.SchemaTypefindDocumentType(QName name)Returns the document type rooted at the given element name, or null if none.SchemaGlobalElementfindElement(QName name)Returns the global element defintion with the given name, or null if none.SchemaModelGroupfindModelGroup(QName name)Returns the model group defintion with the given name, or null if none.SchemaTypefindType(QName name)Returns the type with the given name, or null if none.DOMImplementationnewDomImplementation(XmlOptions options)Returns a DOMImplementation.XmlObjectnewInstance(SchemaType type, XmlOptions options)Creates an instance of the given type.XmlSaxHandlernewXmlSaxHandler(SchemaType type, XmlOptions options)Returns an XmlSaxHandler that can parse an instance of the given type.XmlObjectparse(File file, SchemaType type, XmlOptions options)Parses an instance of the given type.XmlObjectparse(InputStream jiois, SchemaType type, XmlOptions options)Parses an instance of the given type.XmlObjectparse(Reader jior, SchemaType type, XmlOptions options)Parses an instance of the given type.XmlObjectparse(String xmlText, SchemaType type, XmlOptions options)Parses an instance of the given type.XmlObjectparse(URL url, SchemaType type, XmlOptions options)Parses an instance of the given type.XmlObjectparse(XMLStreamReader xsr, SchemaType type, XmlOptions options)Parses an instance of the given type.XmlObjectparse(Node node, SchemaType type, XmlOptions options)Parses an instance of the given type.SchemaTypetypeForSignature(String signature)Utility function to load a type from a signature.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.xmlbeans.SchemaTypeLoader
findAttributeGroupRef, findAttributeRef, findAttributeTypeRef, findDocumentTypeRef, findElementRef, findIdentityConstraintRef, findModelGroupRef, findTypeRef, getSourceAsStream, isNamespaceDefined, typeForClassname
-
Constructor Details
-
SchemaTypeLoaderBase
public SchemaTypeLoaderBase()
-
-
Method Details
-
findType
Description copied from interface:SchemaTypeLoaderReturns the type with the given name, or null if none.- Specified by:
findTypein interfaceSchemaTypeLoader
-
findDocumentType
Description copied from interface:SchemaTypeLoaderReturns the document type rooted at the given element name, or null if none.- Specified by:
findDocumentTypein interfaceSchemaTypeLoader
-
findAttributeType
Description copied from interface:SchemaTypeLoaderReturns the attribute type containing the given attribute name, or null if none.- Specified by:
findAttributeTypein interfaceSchemaTypeLoader
-
findModelGroup
Description copied from interface:SchemaTypeLoaderReturns the model group defintion with the given name, or null if none.- Specified by:
findModelGroupin interfaceSchemaTypeLoader
-
findAttributeGroup
Description copied from interface:SchemaTypeLoaderReturns the attribute group defintion with the given name, or null if none.- Specified by:
findAttributeGroupin interfaceSchemaTypeLoader
-
findElement
Description copied from interface:SchemaTypeLoaderReturns the global element defintion with the given name, or null if none.- Specified by:
findElementin interfaceSchemaTypeLoader
-
findAttribute
Description copied from interface:SchemaTypeLoaderReturns the global attribute defintion with the given name, or null if none.- Specified by:
findAttributein interfaceSchemaTypeLoader
-
newInstance
Description copied from interface:SchemaTypeLoaderCreates an instance of the given type.- Specified by:
newInstancein interfaceSchemaTypeLoader
-
parse
Description copied from interface:SchemaTypeLoaderParses an instance of the given type.- Specified by:
parsein interfaceSchemaTypeLoader- Throws:
XmlException
-
parse
public XmlObject parse(XMLStreamReader xsr, SchemaType type, XmlOptions options) throws XmlExceptionDescription copied from interface:SchemaTypeLoaderParses an instance of the given type.- Specified by:
parsein interfaceSchemaTypeLoader- Throws:
XmlException
-
parse
public XmlObject parse(File file, SchemaType type, XmlOptions options) throws XmlException, IOExceptionDescription copied from interface:SchemaTypeLoaderParses an instance of the given type.- Specified by:
parsein interfaceSchemaTypeLoader- Throws:
XmlExceptionIOException
-
parse
public XmlObject parse(URL url, SchemaType type, XmlOptions options) throws XmlException, IOExceptionDescription copied from interface:SchemaTypeLoaderParses an instance of the given type.- Specified by:
parsein interfaceSchemaTypeLoader- Throws:
XmlExceptionIOException
-
parse
public XmlObject parse(InputStream jiois, SchemaType type, XmlOptions options) throws XmlException, IOExceptionDescription copied from interface:SchemaTypeLoaderParses an instance of the given type.- Specified by:
parsein interfaceSchemaTypeLoader- Throws:
XmlExceptionIOException
-
parse
public XmlObject parse(Reader jior, SchemaType type, XmlOptions options) throws XmlException, IOExceptionDescription copied from interface:SchemaTypeLoaderParses an instance of the given type.- Specified by:
parsein interfaceSchemaTypeLoader- Throws:
XmlExceptionIOException
-
parse
Description copied from interface:SchemaTypeLoaderParses an instance of the given type.- Specified by:
parsein interfaceSchemaTypeLoader- Throws:
XmlException
-
newXmlSaxHandler
Description copied from interface:SchemaTypeLoaderReturns an XmlSaxHandler that can parse an instance of the given type.- Specified by:
newXmlSaxHandlerin interfaceSchemaTypeLoader
-
newDomImplementation
Description copied from interface:SchemaTypeLoaderReturns a DOMImplementation.- Specified by:
newDomImplementationin interfaceSchemaTypeLoader
-
compilePath
-
compilePath
Description copied from interface:SchemaTypeLoaderCompiles an XPath- Specified by:
compilePathin interfaceSchemaTypeLoader
-
compileQuery
-
compileQuery
Description copied from interface:SchemaTypeLoaderCompiles an XQuery- Specified by:
compileQueryin interfaceSchemaTypeLoader
-
typeForSignature
Utility function to load a type from a signature.A signature is the string you get from type.toString().
- Specified by:
typeForSignaturein interfaceSchemaTypeLoader
-