Package org.apache.xmlbeans.impl.schema
Class XQuerySchemaTypeSystem
- java.lang.Object
-
- org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase
-
- org.apache.xmlbeans.impl.schema.XQuerySchemaTypeSystem
-
- All Implemented Interfaces:
SchemaTypeLoader,SchemaTypeSystem
public class XQuerySchemaTypeSystem extends SchemaTypeLoaderBase implements SchemaTypeSystem
Same asBuiltinSchemaTypeSystembut adds three extra types (dayTimeDuration, yearMonthDuration and anyAtomicType) and makes all the primitives extend anyAtomicType.
-
-
Field Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SchemaAnnotation[]annotations()Returns the top-level annotationsSchemaAttributeGroup[]attributeGroups()Returns the attribute groups defined in this loader.SchemaType[]attributeTypes()Returns the attribute types defined in this loader.SchemaType[]documentTypes()Returns the document types defined in this loader.voidfillInType(int btc)Links a type.SchemaGlobalAttributefindAttribute(javax.xml.namespace.QName name)Returns the global attribute defintion with the given name, or null if none.SchemaAttributeGroup.ReffindAttributeGroupRef(javax.xml.namespace.QName name)Used for on-demand loading.SchemaGlobalAttribute.ReffindAttributeRef(javax.xml.namespace.QName name)Used for on-demand loading.SchemaTypefindAttributeType(javax.xml.namespace.QName name)Returns the attribute type containing the given attribute name, or null if none.SchemaType.ReffindAttributeTypeRef(javax.xml.namespace.QName name)Used for on-demand loading.SchemaTypefindDocumentType(javax.xml.namespace.QName name)Returns the document type rooted at the given element name, or null if none.SchemaType.ReffindDocumentTypeRef(javax.xml.namespace.QName name)Used for on-demand loading.SchemaGlobalElementfindElement(javax.xml.namespace.QName name)Returns the global element defintion with the given name, or null if none.SchemaGlobalElement.ReffindElementRef(javax.xml.namespace.QName name)Used for on-demand loading.SchemaIdentityConstraint.ReffindIdentityConstraintRef(javax.xml.namespace.QName name)Used for on-demand loading.SchemaModelGroup.ReffindModelGroupRef(javax.xml.namespace.QName name)Used for on-demand loading.SchemaTypefindType(javax.xml.namespace.QName name)Returns the type with the given name, or null if none.SchemaType.ReffindTypeRef(javax.xml.namespace.QName name)Used for on-demand loading.static SchemaTypeSystemget()java.lang.ClassLoadergetClassLoader()Returns the classloader used by this loader for resolving types.java.lang.StringgetName()Returns the name of this loader.static SchemaTypegetNoType()java.io.InputStreamgetSourceAsStream(java.lang.String sourceName)Loads original XSD source as a stream.SchemaGlobalAttribute[]globalAttributes()Returns the global attributes defined in this loader.SchemaGlobalElement[]globalElements()Returns the global elements defined in this loader.SchemaType[]globalTypes()Returns the global types defined in this loader.java.lang.StringhandleForType(SchemaType type)Returns the handle for the given type within this loader.booleanisNamespaceDefined(java.lang.String namespace)True if the typeloader contains any definitions in the given namespace.SchemaModelGroup[]modelGroups()Returns the model groups defined in this loader.voidresolve()Initializes a type system (resolves all handles within the type system).SchemaComponentresolveHandle(java.lang.String handle)Locates a type, element, or attribute using the handle.voidsave(Filer filer)Saves this type system using a FilervoidsaveToDirectory(java.io.File classDir)Saves this type to a directory.SchemaTypetypeForClassname(java.lang.String classname)Finds a type for a given fully-qualified XML Bean classnameSchemaTypetypeForHandle(java.lang.String handle)Locates a type, element, or attribute using the handle.-
Methods inherited from class org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase
compilePath, compilePath, compileQuery, compileQuery, findAttributeGroup, findModelGroup, newDomImplementation, newInstance, newValidatingXMLInputStream, newXmlSaxHandler, parse, parse, parse, parse, parse, parse, parse, parse, typeForSignature
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.xmlbeans.SchemaTypeLoader
compilePath, compileQuery, findAttributeGroup, findModelGroup, newDomImplementation, newInstance, newValidatingXMLInputStream, newXmlSaxHandler, parse, parse, parse, parse, parse, parse, parse, parse, typeForSignature
-
-
-
-
Field Detail
-
BTC_FIRST_XQUERY
public static final int BTC_FIRST_XQUERY
- See Also:
- Constant Field Values
-
BTC_ANY_ATOMIC
public static final int BTC_ANY_ATOMIC
- See Also:
- Constant Field Values
-
BTC_DAY_TIME_DURATION
public static final int BTC_DAY_TIME_DURATION
- See Also:
- Constant Field Values
-
BTC_YEAR_MONTH_DURATION
public static final int BTC_YEAR_MONTH_DURATION
- See Also:
- Constant Field Values
-
BTC_LAST_XQUERY
public static final int BTC_LAST_XQUERY
- See Also:
- Constant Field Values
-
ST_ANY_TYPE
public static final SchemaTypeImpl ST_ANY_TYPE
-
ST_ANY_SIMPLE
public static final SchemaTypeImpl ST_ANY_SIMPLE
-
ST_ANY_ATOMIC
public static final SchemaTypeImpl ST_ANY_ATOMIC
-
ST_BOOLEAN
public static final SchemaTypeImpl ST_BOOLEAN
-
ST_BASE_64_BINARY
public static final SchemaTypeImpl ST_BASE_64_BINARY
-
ST_HEX_BINARY
public static final SchemaTypeImpl ST_HEX_BINARY
-
ST_ANY_URI
public static final SchemaTypeImpl ST_ANY_URI
-
ST_QNAME
public static final SchemaTypeImpl ST_QNAME
-
ST_NOTATION
public static final SchemaTypeImpl ST_NOTATION
-
ST_FLOAT
public static final SchemaTypeImpl ST_FLOAT
-
ST_DOUBLE
public static final SchemaTypeImpl ST_DOUBLE
-
ST_DECIMAL
public static final SchemaTypeImpl ST_DECIMAL
-
ST_STRING
public static final SchemaTypeImpl ST_STRING
-
ST_DURATION
public static final SchemaTypeImpl ST_DURATION
-
ST_DATE_TIME
public static final SchemaTypeImpl ST_DATE_TIME
-
ST_TIME
public static final SchemaTypeImpl ST_TIME
-
ST_DATE
public static final SchemaTypeImpl ST_DATE
-
ST_G_YEAR_MONTH
public static final SchemaTypeImpl ST_G_YEAR_MONTH
-
ST_G_YEAR
public static final SchemaTypeImpl ST_G_YEAR
-
ST_G_MONTH_DAY
public static final SchemaTypeImpl ST_G_MONTH_DAY
-
ST_G_DAY
public static final SchemaTypeImpl ST_G_DAY
-
ST_G_MONTH
public static final SchemaTypeImpl ST_G_MONTH
-
ST_INTEGER
public static final SchemaTypeImpl ST_INTEGER
-
ST_LONG
public static final SchemaTypeImpl ST_LONG
-
ST_INT
public static final SchemaTypeImpl ST_INT
-
ST_SHORT
public static final SchemaTypeImpl ST_SHORT
-
ST_BYTE
public static final SchemaTypeImpl ST_BYTE
-
ST_NON_POSITIVE_INTEGER
public static final SchemaTypeImpl ST_NON_POSITIVE_INTEGER
-
ST_NEGATIVE_INTEGER
public static final SchemaTypeImpl ST_NEGATIVE_INTEGER
-
ST_NON_NEGATIVE_INTEGER
public static final SchemaTypeImpl ST_NON_NEGATIVE_INTEGER
-
ST_POSITIVE_INTEGER
public static final SchemaTypeImpl ST_POSITIVE_INTEGER
-
ST_UNSIGNED_LONG
public static final SchemaTypeImpl ST_UNSIGNED_LONG
-
ST_UNSIGNED_INT
public static final SchemaTypeImpl ST_UNSIGNED_INT
-
ST_UNSIGNED_SHORT
public static final SchemaTypeImpl ST_UNSIGNED_SHORT
-
ST_UNSIGNED_BYTE
public static final SchemaTypeImpl ST_UNSIGNED_BYTE
-
ST_NORMALIZED_STRING
public static final SchemaTypeImpl ST_NORMALIZED_STRING
-
ST_TOKEN
public static final SchemaTypeImpl ST_TOKEN
-
ST_NAME
public static final SchemaTypeImpl ST_NAME
-
ST_NCNAME
public static final SchemaTypeImpl ST_NCNAME
-
ST_LANGUAGE
public static final SchemaTypeImpl ST_LANGUAGE
-
ST_ID
public static final SchemaTypeImpl ST_ID
-
ST_IDREF
public static final SchemaTypeImpl ST_IDREF
-
ST_IDREFS
public static final SchemaTypeImpl ST_IDREFS
-
ST_ENTITY
public static final SchemaTypeImpl ST_ENTITY
-
ST_ENTITIES
public static final SchemaTypeImpl ST_ENTITIES
-
ST_NMTOKEN
public static final SchemaTypeImpl ST_NMTOKEN
-
ST_NMTOKENS
public static final SchemaTypeImpl ST_NMTOKENS
-
ST_DAY_TIME_DURATION
public static final SchemaTypeImpl ST_DAY_TIME_DURATION
-
ST_YEAR_MONTH_DURATION
public static final SchemaTypeImpl ST_YEAR_MONTH_DURATION
-
ST_NO_TYPE
public static final SchemaTypeImpl ST_NO_TYPE
-
-
Method Detail
-
get
public static SchemaTypeSystem get()
-
getName
public java.lang.String getName()
Returns the name of this loader.- Specified by:
getNamein interfaceSchemaTypeSystem
-
isNamespaceDefined
public boolean isNamespaceDefined(java.lang.String namespace)
Description copied from interface:SchemaTypeLoaderTrue if the typeloader contains any definitions in the given namespace.- Specified by:
isNamespaceDefinedin interfaceSchemaTypeLoader
-
findType
public SchemaType findType(javax.xml.namespace.QName name)
Description copied from interface:SchemaTypeLoaderReturns the type with the given name, or null if none.- Specified by:
findTypein interfaceSchemaTypeLoader- Overrides:
findTypein classSchemaTypeLoaderBase
-
findDocumentType
public SchemaType findDocumentType(javax.xml.namespace.QName name)
Description copied from interface:SchemaTypeLoaderReturns the document type rooted at the given element name, or null if none.- Specified by:
findDocumentTypein interfaceSchemaTypeLoader- Overrides:
findDocumentTypein classSchemaTypeLoaderBase
-
findAttributeType
public SchemaType findAttributeType(javax.xml.namespace.QName name)
Description copied from interface:SchemaTypeLoaderReturns the attribute type containing the given attribute name, or null if none.- Specified by:
findAttributeTypein interfaceSchemaTypeLoader- Overrides:
findAttributeTypein classSchemaTypeLoaderBase
-
findElement
public SchemaGlobalElement findElement(javax.xml.namespace.QName name)
Description copied from interface:SchemaTypeLoaderReturns the global element defintion with the given name, or null if none.- Specified by:
findElementin interfaceSchemaTypeLoader- Overrides:
findElementin classSchemaTypeLoaderBase
-
findAttribute
public SchemaGlobalAttribute findAttribute(javax.xml.namespace.QName name)
Description copied from interface:SchemaTypeLoaderReturns the global attribute defintion with the given name, or null if none.- Specified by:
findAttributein interfaceSchemaTypeLoader- Overrides:
findAttributein classSchemaTypeLoaderBase
-
findTypeRef
public SchemaType.Ref findTypeRef(javax.xml.namespace.QName name)
Description copied from interface:SchemaTypeLoaderUsed for on-demand loading.- Specified by:
findTypeRefin interfaceSchemaTypeLoader
-
findDocumentTypeRef
public SchemaType.Ref findDocumentTypeRef(javax.xml.namespace.QName name)
Description copied from interface:SchemaTypeLoaderUsed for on-demand loading.- Specified by:
findDocumentTypeRefin interfaceSchemaTypeLoader
-
findAttributeTypeRef
public SchemaType.Ref findAttributeTypeRef(javax.xml.namespace.QName name)
Description copied from interface:SchemaTypeLoaderUsed for on-demand loading.- Specified by:
findAttributeTypeRefin interfaceSchemaTypeLoader
-
findElementRef
public SchemaGlobalElement.Ref findElementRef(javax.xml.namespace.QName name)
Description copied from interface:SchemaTypeLoaderUsed for on-demand loading.- Specified by:
findElementRefin interfaceSchemaTypeLoader
-
findAttributeRef
public SchemaGlobalAttribute.Ref findAttributeRef(javax.xml.namespace.QName name)
Description copied from interface:SchemaTypeLoaderUsed for on-demand loading.- Specified by:
findAttributeRefin interfaceSchemaTypeLoader
-
findModelGroupRef
public SchemaModelGroup.Ref findModelGroupRef(javax.xml.namespace.QName name)
Description copied from interface:SchemaTypeLoaderUsed for on-demand loading.- Specified by:
findModelGroupRefin interfaceSchemaTypeLoader
-
findAttributeGroupRef
public SchemaAttributeGroup.Ref findAttributeGroupRef(javax.xml.namespace.QName name)
Description copied from interface:SchemaTypeLoaderUsed for on-demand loading.- Specified by:
findAttributeGroupRefin interfaceSchemaTypeLoader
-
findIdentityConstraintRef
public SchemaIdentityConstraint.Ref findIdentityConstraintRef(javax.xml.namespace.QName name)
Description copied from interface:SchemaTypeLoaderUsed for on-demand loading.- Specified by:
findIdentityConstraintRefin interfaceSchemaTypeLoader
-
typeForClassname
public SchemaType typeForClassname(java.lang.String classname)
Description copied from interface:SchemaTypeLoaderFinds a type for a given fully-qualified XML Bean classname- Specified by:
typeForClassnamein interfaceSchemaTypeLoader
-
getSourceAsStream
public java.io.InputStream getSourceAsStream(java.lang.String sourceName)
Description copied from interface:SchemaTypeLoaderLoads original XSD source as a stream. SeeSchemaComponent.getSourceName().- Specified by:
getSourceAsStreamin interfaceSchemaTypeLoader
-
globalTypes
public SchemaType[] globalTypes()
Returns the global types defined in this loader.- Specified by:
globalTypesin interfaceSchemaTypeSystem
-
documentTypes
public SchemaType[] documentTypes()
Returns the document types defined in this loader.- Specified by:
documentTypesin interfaceSchemaTypeSystem
-
attributeTypes
public SchemaType[] attributeTypes()
Returns the attribute types defined in this loader.- Specified by:
attributeTypesin interfaceSchemaTypeSystem
-
globalElements
public SchemaGlobalElement[] globalElements()
Returns the global elements defined in this loader.- Specified by:
globalElementsin interfaceSchemaTypeSystem
-
globalAttributes
public SchemaGlobalAttribute[] globalAttributes()
Returns the global attributes defined in this loader.- Specified by:
globalAttributesin interfaceSchemaTypeSystem
-
modelGroups
public SchemaModelGroup[] modelGroups()
Returns the model groups defined in this loader.- Specified by:
modelGroupsin interfaceSchemaTypeSystem
-
attributeGroups
public SchemaAttributeGroup[] attributeGroups()
Returns the attribute groups defined in this loader.- Specified by:
attributeGroupsin interfaceSchemaTypeSystem
-
annotations
public SchemaAnnotation[] annotations()
Description copied from interface:SchemaTypeSystemReturns the top-level annotations- Specified by:
annotationsin interfaceSchemaTypeSystem
-
handleForType
public java.lang.String handleForType(SchemaType type)
Returns the handle for the given type within this loader.
-
getClassLoader
public java.lang.ClassLoader getClassLoader()
Returns the classloader used by this loader for resolving types.- Specified by:
getClassLoaderin interfaceSchemaTypeSystem
-
saveToDirectory
public void saveToDirectory(java.io.File classDir)
Saves this type to a directory.- Specified by:
saveToDirectoryin interfaceSchemaTypeSystem
-
save
public void save(Filer filer)
Saves this type system using a Filer- Specified by:
savein interfaceSchemaTypeSystem
-
resolve
public void resolve()
Description copied from interface:SchemaTypeSystemInitializes a type system (resolves all handles within the type system).- Specified by:
resolvein interfaceSchemaTypeSystem
-
typeForHandle
public SchemaType typeForHandle(java.lang.String handle)
Description copied from interface:SchemaTypeSystemLocates a type, element, or attribute using the handle.- Specified by:
typeForHandlein interfaceSchemaTypeSystem
-
resolveHandle
public SchemaComponent resolveHandle(java.lang.String handle)
Description copied from interface:SchemaTypeSystemLocates a type, element, or attribute using the handle.- Specified by:
resolveHandlein interfaceSchemaTypeSystem
-
fillInType
public void fillInType(int btc)
Links a type.
-
getNoType
public static SchemaType getNoType()
-
-