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 StringMETADATA_PACKAGE_LOAD
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SchemaTypeLoaderbuild(SchemaTypeLoader[] searchPath, ResourceLoader resourceLoader, ClassLoader classLoader)static SchemaTypeLoaderbuild(SchemaTypeLoader[] searchPath, ResourceLoader resourceLoader, ClassLoader classLoader, String metadataPath)Initialize a SchemaTypeLoader via the given loaders and pathsSchemaAttributeGroup.ReffindAttributeGroupRef(QName name)Used for on-demand loading.SchemaGlobalAttribute.ReffindAttributeRef(QName name)Used for on-demand loading.SchemaType.ReffindAttributeTypeRef(QName name)Used for on-demand loading.SchemaType.ReffindDocumentTypeRef(QName name)Used for on-demand loading.SchemaGlobalElement.ReffindElementRef(QName name)Used for on-demand loading.SchemaIdentityConstraint.ReffindIdentityConstraintRef(QName name)Used for on-demand loading.SchemaModelGroup.ReffindModelGroupRef(QName name)Used for on-demand loading.SchemaType.ReffindTypeRef(QName name)Used for on-demand loading.static SchemaTypeLoaderImplgetContextTypeLoader()InputStreamgetSourceAsStream(String sourceName)Loads original XSD source as a stream.booleanisNamespaceDefined(String namespace)True if the typeloader contains any definitions in the given namespace.SchemaTypetypeForClassname(String classname)Finds a type for a given fully-qualified XML Bean classnameSchemaTypeSystemtypeSystemForName(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, newValidatingXMLInputStream, newXmlSaxHandler, parse, parse, parse, parse, parse, parse, parse, parse, typeForSignature
-
-
-
-
Field Detail
-
METADATA_PACKAGE_LOAD
public static String METADATA_PACKAGE_LOAD
-
-
Method Detail
-
getContextTypeLoader
public static SchemaTypeLoaderImpl 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
public SchemaTypeSystem typeSystemForName(String name)
-
isNamespaceDefined
public boolean isNamespaceDefined(String namespace)
Description copied from interface:SchemaTypeLoaderTrue if the typeloader contains any definitions in the given namespace.
-
findTypeRef
public SchemaType.Ref findTypeRef(QName name)
Description copied from interface:SchemaTypeLoaderUsed for on-demand loading.
-
typeForClassname
public SchemaType typeForClassname(String classname)
Description copied from interface:SchemaTypeLoaderFinds a type for a given fully-qualified XML Bean classname
-
findDocumentTypeRef
public SchemaType.Ref findDocumentTypeRef(QName name)
Description copied from interface:SchemaTypeLoaderUsed for on-demand loading.
-
findAttributeTypeRef
public SchemaType.Ref findAttributeTypeRef(QName name)
Description copied from interface:SchemaTypeLoaderUsed for on-demand loading.
-
findElementRef
public SchemaGlobalElement.Ref findElementRef(QName name)
Description copied from interface:SchemaTypeLoaderUsed for on-demand loading.
-
findAttributeRef
public SchemaGlobalAttribute.Ref findAttributeRef(QName name)
Description copied from interface:SchemaTypeLoaderUsed for on-demand loading.
-
findModelGroupRef
public SchemaModelGroup.Ref findModelGroupRef(QName name)
Description copied from interface:SchemaTypeLoaderUsed for on-demand loading.
-
findAttributeGroupRef
public SchemaAttributeGroup.Ref findAttributeGroupRef(QName name)
Description copied from interface:SchemaTypeLoaderUsed for on-demand loading.
-
findIdentityConstraintRef
public SchemaIdentityConstraint.Ref findIdentityConstraintRef(QName name)
Description copied from interface:SchemaTypeLoaderUsed for on-demand loading.
-
getSourceAsStream
public InputStream getSourceAsStream(String sourceName)
Description copied from interface:SchemaTypeLoaderLoads original XSD source as a stream. SeeSchemaComponent.getSourceName().
-
-