Package org.apache.xmlbeans.impl.schema
Class SchemaTypeLoaderImpl
java.lang.Object
org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase
org.apache.xmlbeans.impl.schema.SchemaTypeLoaderImpl
- All Implemented Interfaces:
SchemaTypeLoader
public class SchemaTypeLoaderImpl extends SchemaTypeLoaderBase
-
Field Summary
Fields Modifier and Type Field Description static String
METADATA_PACKAGE_LOAD
-
Method Summary
Modifier and Type Method Description static SchemaTypeLoader
build(SchemaTypeLoader[] searchPath, ResourceLoader resourceLoader, ClassLoader classLoader)
static SchemaTypeLoader
build(SchemaTypeLoader[] searchPath, ResourceLoader resourceLoader, ClassLoader classLoader, String metadataPath)
Initialize a SchemaTypeLoader via the given loaders and pathsSchemaAttributeGroup.Ref
findAttributeGroupRef(QName name)
Used for on-demand loading.SchemaGlobalAttribute.Ref
findAttributeRef(QName name)
Used for on-demand loading.SchemaType.Ref
findAttributeTypeRef(QName name)
Used for on-demand loading.SchemaType.Ref
findDocumentTypeRef(QName name)
Used for on-demand loading.SchemaGlobalElement.Ref
findElementRef(QName name)
Used for on-demand loading.SchemaIdentityConstraint.Ref
findIdentityConstraintRef(QName name)
Used for on-demand loading.SchemaModelGroup.Ref
findModelGroupRef(QName name)
Used for on-demand loading.SchemaType.Ref
findTypeRef(QName name)
Used for on-demand loading.static SchemaTypeLoaderImpl
getContextTypeLoader()
InputStream
getSourceAsStream(String sourceName)
Loads original XSD source as a stream.boolean
isNamespaceDefined(String namespace)
True if the typeloader contains any definitions in the given namespace.SchemaType
typeForClassname(String classname)
Finds a type for a given fully-qualified XML Bean classnameSchemaTypeSystem
typeSystemForName(String name)
Methods inherited from class org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase
compilePath, compilePath, compileQuery, compileQuery, findAttribute, findAttributeGroup, findAttributeType, findDocumentType, findElement, findModelGroup, findType, newDomImplementation, newInstance, newXmlSaxHandler, parse, parse, parse, parse, parse, parse, parse, typeForSignature
-
Field Details
-
Method Details
-
getContextTypeLoader
-
build
public static SchemaTypeLoader build(SchemaTypeLoader[] searchPath, ResourceLoader resourceLoader, ClassLoader classLoader) -
build
public static SchemaTypeLoader build(SchemaTypeLoader[] searchPath, ResourceLoader resourceLoader, ClassLoader classLoader, String metadataPath)Initialize a SchemaTypeLoader via the given loaders and paths- Parameters:
searchPath
- the searchPath to useresourceLoader
- the resourceLoader to useclassLoader
- the classLoader to usemetadataPath
- the custom metadata path- Returns:
- the schemaTypeLoader
- Since:
- XmlBeans 3.1.0
-
typeSystemForName
-
isNamespaceDefined
Description copied from interface:SchemaTypeLoader
True if the typeloader contains any definitions in the given namespace. -
findTypeRef
Description copied from interface:SchemaTypeLoader
Used for on-demand loading. -
typeForClassname
Description copied from interface:SchemaTypeLoader
Finds a type for a given fully-qualified XML Bean classname -
findDocumentTypeRef
Description copied from interface:SchemaTypeLoader
Used for on-demand loading. -
findAttributeTypeRef
Description copied from interface:SchemaTypeLoader
Used for on-demand loading. -
findElementRef
Description copied from interface:SchemaTypeLoader
Used for on-demand loading. -
findAttributeRef
Description copied from interface:SchemaTypeLoader
Used for on-demand loading. -
findModelGroupRef
Description copied from interface:SchemaTypeLoader
Used for on-demand loading. -
findAttributeGroupRef
Description copied from interface:SchemaTypeLoader
Used for on-demand loading. -
findIdentityConstraintRef
Description copied from interface:SchemaTypeLoader
Used for on-demand loading. -
getSourceAsStream
Description copied from interface:SchemaTypeLoader
Loads original XSD source as a stream. SeeSchemaComponent.getSourceName()
.
-