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
All Methods Instance Methods Concrete Methods 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, wait
-
Methods inherited from interface org.apache.xmlbeans.SchemaTypeLoader
findAttributeGroupRef, findAttributeRef, findAttributeTypeRef, findDocumentTypeRef, findElementRef, findIdentityConstraintRef, findModelGroupRef, findTypeRef, getSourceAsStream, isNamespaceDefined, typeForClassname
-
-
-
-
Method Detail
-
findType
public SchemaType findType(QName name)
Description copied from interface:SchemaTypeLoaderReturns the type with the given name, or null if none.- Specified by:
findTypein interfaceSchemaTypeLoader
-
findDocumentType
public SchemaType findDocumentType(QName name)
Description copied from interface:SchemaTypeLoaderReturns the document type rooted at the given element name, or null if none.- Specified by:
findDocumentTypein interfaceSchemaTypeLoader
-
findAttributeType
public SchemaType findAttributeType(QName name)
Description copied from interface:SchemaTypeLoaderReturns the attribute type containing the given attribute name, or null if none.- Specified by:
findAttributeTypein interfaceSchemaTypeLoader
-
findModelGroup
public SchemaModelGroup findModelGroup(QName name)
Description copied from interface:SchemaTypeLoaderReturns the model group defintion with the given name, or null if none.- Specified by:
findModelGroupin interfaceSchemaTypeLoader
-
findAttributeGroup
public SchemaAttributeGroup findAttributeGroup(QName name)
Description copied from interface:SchemaTypeLoaderReturns the attribute group defintion with the given name, or null if none.- Specified by:
findAttributeGroupin interfaceSchemaTypeLoader
-
findElement
public SchemaGlobalElement findElement(QName name)
Description copied from interface:SchemaTypeLoaderReturns the global element defintion with the given name, or null if none.- Specified by:
findElementin interfaceSchemaTypeLoader
-
findAttribute
public SchemaGlobalAttribute findAttribute(QName name)
Description copied from interface:SchemaTypeLoaderReturns the global attribute defintion with the given name, or null if none.- Specified by:
findAttributein interfaceSchemaTypeLoader
-
newInstance
public XmlObject newInstance(SchemaType type, XmlOptions options)
Description copied from interface:SchemaTypeLoaderCreates an instance of the given type.- Specified by:
newInstancein interfaceSchemaTypeLoader
-
parse
public XmlObject parse(String xmlText, SchemaType type, XmlOptions options) throws XmlException
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 XmlException
Description 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, IOException
Description 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, IOException
Description 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, IOException
Description 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, IOException
Description copied from interface:SchemaTypeLoaderParses an instance of the given type.- Specified by:
parsein interfaceSchemaTypeLoader- Throws:
XmlExceptionIOException
-
parse
public XmlObject parse(Node node, SchemaType type, XmlOptions options) throws XmlException
Description copied from interface:SchemaTypeLoaderParses an instance of the given type.- Specified by:
parsein interfaceSchemaTypeLoader- Throws:
XmlException
-
newXmlSaxHandler
public XmlSaxHandler newXmlSaxHandler(SchemaType type, XmlOptions options)
Description copied from interface:SchemaTypeLoaderReturns an XmlSaxHandler that can parse an instance of the given type.- Specified by:
newXmlSaxHandlerin interfaceSchemaTypeLoader
-
newDomImplementation
public DOMImplementation newDomImplementation(XmlOptions options)
Description copied from interface:SchemaTypeLoaderReturns a DOMImplementation.- Specified by:
newDomImplementationin interfaceSchemaTypeLoader
-
compilePath
public String compilePath(String pathExpr, XmlOptions options)
Description copied from interface:SchemaTypeLoaderCompiles an XPath- Specified by:
compilePathin interfaceSchemaTypeLoader
-
compileQuery
public String compileQuery(String queryExpr, XmlOptions options)
Description copied from interface:SchemaTypeLoaderCompiles an XQuery- Specified by:
compileQueryin interfaceSchemaTypeLoader
-
typeForSignature
public SchemaType typeForSignature(String signature)
Utility function to load a type from a signature.A signature is the string you get from type.toString().
- Specified by:
typeForSignaturein interfaceSchemaTypeLoader
-
-