|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase
org.apache.xmlbeans.impl.schema.XQuerySchemaTypeSystem
public class XQuerySchemaTypeSystem
Same as BuiltinSchemaTypeSystem but adds three extra types
(dayTimeDuration, yearMonthDuration and anyAtomicType)
and makes all the primitives extend anyAtomicType.
| Method Summary | |
|---|---|
SchemaAnnotation[] |
annotations()
Returns the top-level annotations |
SchemaAttributeGroup[] |
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. |
void |
fillInType(int btc)
Links a type. |
SchemaGlobalAttribute |
findAttribute(javax.xml.namespace.QName name)
Returns the global attribute defintion with the given name, or null if none. |
SchemaAttributeGroup.Ref |
findAttributeGroupRef(javax.xml.namespace.QName name)
Used for on-demand loading. |
SchemaGlobalAttribute.Ref |
findAttributeRef(javax.xml.namespace.QName name)
Used for on-demand loading. |
SchemaType |
findAttributeType(javax.xml.namespace.QName name)
Returns the attribute type containing the given attribute name, or null if none. |
SchemaType.Ref |
findAttributeTypeRef(javax.xml.namespace.QName name)
Used for on-demand loading. |
SchemaType |
findDocumentType(javax.xml.namespace.QName name)
Returns the document type rooted at the given element name, or null if none. |
SchemaType.Ref |
findDocumentTypeRef(javax.xml.namespace.QName name)
Used for on-demand loading. |
SchemaGlobalElement |
findElement(javax.xml.namespace.QName name)
Returns the global element defintion with the given name, or null if none. |
SchemaGlobalElement.Ref |
findElementRef(javax.xml.namespace.QName name)
Used for on-demand loading. |
SchemaIdentityConstraint.Ref |
findIdentityConstraintRef(javax.xml.namespace.QName name)
Used for on-demand loading. |
SchemaModelGroup.Ref |
findModelGroupRef(javax.xml.namespace.QName name)
Used for on-demand loading. |
SchemaType |
findType(javax.xml.namespace.QName name)
Returns the type with the given name, or null if none. |
SchemaType.Ref |
findTypeRef(javax.xml.namespace.QName name)
Used for on-demand loading. |
static SchemaTypeSystem |
get()
|
java.lang.ClassLoader |
getClassLoader()
Returns the classloader used by this loader for resolving types. |
java.lang.String |
getName()
Returns the name of this loader. |
static SchemaType |
getNoType()
|
java.io.InputStream |
getSourceAsStream(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.String |
handleForType(SchemaType type)
Returns the handle for the given type within this loader. |
boolean |
isNamespaceDefined(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. |
void |
resolve()
Initializes a type system (resolves all handles within the type system). |
SchemaComponent |
resolveHandle(java.lang.String handle)
Locates a type, element, or attribute using the handle. |
void |
save(Filer filer)
Saves this type system using a Filer |
void |
saveToDirectory(java.io.File classDir)
Saves this type to a directory. |
SchemaType |
typeForClassname(java.lang.String classname)
Finds a type for a given fully-qualified XML Bean classname |
SchemaType |
typeForHandle(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 |
|---|
clone, equals, finalize, 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 |
|---|
public static final int BTC_FIRST_XQUERY
public static final int BTC_ANY_ATOMIC
public static final int BTC_DAY_TIME_DURATION
public static final int BTC_YEAR_MONTH_DURATION
public static final int BTC_LAST_XQUERY
public static final SchemaTypeImpl ST_ANY_TYPE
public static final SchemaTypeImpl ST_ANY_SIMPLE
public static final SchemaTypeImpl ST_ANY_ATOMIC
public static final SchemaTypeImpl ST_BOOLEAN
public static final SchemaTypeImpl ST_BASE_64_BINARY
public static final SchemaTypeImpl ST_HEX_BINARY
public static final SchemaTypeImpl ST_ANY_URI
public static final SchemaTypeImpl ST_QNAME
public static final SchemaTypeImpl ST_NOTATION
public static final SchemaTypeImpl ST_FLOAT
public static final SchemaTypeImpl ST_DOUBLE
public static final SchemaTypeImpl ST_DECIMAL
public static final SchemaTypeImpl ST_STRING
public static final SchemaTypeImpl ST_DURATION
public static final SchemaTypeImpl ST_DATE_TIME
public static final SchemaTypeImpl ST_TIME
public static final SchemaTypeImpl ST_DATE
public static final SchemaTypeImpl ST_G_YEAR_MONTH
public static final SchemaTypeImpl ST_G_YEAR
public static final SchemaTypeImpl ST_G_MONTH_DAY
public static final SchemaTypeImpl ST_G_DAY
public static final SchemaTypeImpl ST_G_MONTH
public static final SchemaTypeImpl ST_INTEGER
public static final SchemaTypeImpl ST_LONG
public static final SchemaTypeImpl ST_INT
public static final SchemaTypeImpl ST_SHORT
public static final SchemaTypeImpl ST_BYTE
public static final SchemaTypeImpl ST_NON_POSITIVE_INTEGER
public static final SchemaTypeImpl ST_NEGATIVE_INTEGER
public static final SchemaTypeImpl ST_NON_NEGATIVE_INTEGER
public static final SchemaTypeImpl ST_POSITIVE_INTEGER
public static final SchemaTypeImpl ST_UNSIGNED_LONG
public static final SchemaTypeImpl ST_UNSIGNED_INT
public static final SchemaTypeImpl ST_UNSIGNED_SHORT
public static final SchemaTypeImpl ST_UNSIGNED_BYTE
public static final SchemaTypeImpl ST_NORMALIZED_STRING
public static final SchemaTypeImpl ST_TOKEN
public static final SchemaTypeImpl ST_NAME
public static final SchemaTypeImpl ST_NCNAME
public static final SchemaTypeImpl ST_LANGUAGE
public static final SchemaTypeImpl ST_ID
public static final SchemaTypeImpl ST_IDREF
public static final SchemaTypeImpl ST_IDREFS
public static final SchemaTypeImpl ST_ENTITY
public static final SchemaTypeImpl ST_ENTITIES
public static final SchemaTypeImpl ST_NMTOKEN
public static final SchemaTypeImpl ST_NMTOKENS
public static final SchemaTypeImpl ST_DAY_TIME_DURATION
public static final SchemaTypeImpl ST_YEAR_MONTH_DURATION
public static final SchemaTypeImpl ST_NO_TYPE
| Method Detail |
|---|
public static SchemaTypeSystem get()
public java.lang.String getName()
getName in interface SchemaTypeSystempublic boolean isNamespaceDefined(java.lang.String namespace)
SchemaTypeLoader
isNamespaceDefined in interface SchemaTypeLoaderpublic SchemaType findType(javax.xml.namespace.QName name)
SchemaTypeLoader
findType in interface SchemaTypeLoaderfindType in class SchemaTypeLoaderBasepublic SchemaType findDocumentType(javax.xml.namespace.QName name)
SchemaTypeLoader
findDocumentType in interface SchemaTypeLoaderfindDocumentType in class SchemaTypeLoaderBasepublic SchemaType findAttributeType(javax.xml.namespace.QName name)
SchemaTypeLoader
findAttributeType in interface SchemaTypeLoaderfindAttributeType in class SchemaTypeLoaderBasepublic SchemaGlobalElement findElement(javax.xml.namespace.QName name)
SchemaTypeLoader
findElement in interface SchemaTypeLoaderfindElement in class SchemaTypeLoaderBasepublic SchemaGlobalAttribute findAttribute(javax.xml.namespace.QName name)
SchemaTypeLoader
findAttribute in interface SchemaTypeLoaderfindAttribute in class SchemaTypeLoaderBasepublic SchemaType.Ref findTypeRef(javax.xml.namespace.QName name)
SchemaTypeLoader
findTypeRef in interface SchemaTypeLoaderpublic SchemaType.Ref findDocumentTypeRef(javax.xml.namespace.QName name)
SchemaTypeLoader
findDocumentTypeRef in interface SchemaTypeLoaderpublic SchemaType.Ref findAttributeTypeRef(javax.xml.namespace.QName name)
SchemaTypeLoader
findAttributeTypeRef in interface SchemaTypeLoaderpublic SchemaGlobalElement.Ref findElementRef(javax.xml.namespace.QName name)
SchemaTypeLoader
findElementRef in interface SchemaTypeLoaderpublic SchemaGlobalAttribute.Ref findAttributeRef(javax.xml.namespace.QName name)
SchemaTypeLoader
findAttributeRef in interface SchemaTypeLoaderpublic SchemaModelGroup.Ref findModelGroupRef(javax.xml.namespace.QName name)
SchemaTypeLoader
findModelGroupRef in interface SchemaTypeLoaderpublic SchemaAttributeGroup.Ref findAttributeGroupRef(javax.xml.namespace.QName name)
SchemaTypeLoader
findAttributeGroupRef in interface SchemaTypeLoaderpublic SchemaIdentityConstraint.Ref findIdentityConstraintRef(javax.xml.namespace.QName name)
SchemaTypeLoader
findIdentityConstraintRef in interface SchemaTypeLoaderpublic SchemaType typeForClassname(java.lang.String classname)
SchemaTypeLoader
typeForClassname in interface SchemaTypeLoaderpublic java.io.InputStream getSourceAsStream(java.lang.String sourceName)
SchemaTypeLoaderSchemaComponent.getSourceName().
getSourceAsStream in interface SchemaTypeLoaderpublic SchemaType[] globalTypes()
globalTypes in interface SchemaTypeSystempublic SchemaType[] documentTypes()
documentTypes in interface SchemaTypeSystempublic SchemaType[] attributeTypes()
attributeTypes in interface SchemaTypeSystempublic SchemaGlobalElement[] globalElements()
globalElements in interface SchemaTypeSystempublic SchemaGlobalAttribute[] globalAttributes()
globalAttributes in interface SchemaTypeSystempublic SchemaModelGroup[] modelGroups()
modelGroups in interface SchemaTypeSystempublic SchemaAttributeGroup[] attributeGroups()
attributeGroups in interface SchemaTypeSystempublic SchemaAnnotation[] annotations()
SchemaTypeSystem
annotations in interface SchemaTypeSystempublic java.lang.String handleForType(SchemaType type)
public java.lang.ClassLoader getClassLoader()
getClassLoader in interface SchemaTypeSystempublic void saveToDirectory(java.io.File classDir)
saveToDirectory in interface SchemaTypeSystempublic void save(Filer filer)
save in interface SchemaTypeSystempublic void resolve()
SchemaTypeSystem
resolve in interface SchemaTypeSystempublic SchemaType typeForHandle(java.lang.String handle)
SchemaTypeSystem
typeForHandle in interface SchemaTypeSystempublic SchemaComponent resolveHandle(java.lang.String handle)
SchemaTypeSystem
resolveHandle in interface SchemaTypeSystempublic void fillInType(int btc)
public static SchemaType getNoType()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||