|
|||||||||
| 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.SchemaTypeSystemImpl
public class SchemaTypeSystemImpl
| Constructor Summary | |
|---|---|
SchemaTypeSystemImpl(java.lang.Class indexclass)
|
|
SchemaTypeSystemImpl(ResourceLoader resourceLoader,
java.lang.String name,
SchemaTypeLoader linker)
|
|
SchemaTypeSystemImpl(java.lang.String nameForSystem)
|
|
| 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. |
static java.lang.String |
crackPointer(java.io.InputStream stream)
|
SchemaType[] |
documentTypes()
Returns the document types defined in this loader. |
static boolean |
fileContainsTypeSystem(java.io.File file,
java.lang.String name)
|
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.Ref |
findAttributeTypeRef(javax.xml.namespace.QName name)
Used for on-demand loading. |
SchemaType.Ref |
findDocumentTypeRef(javax.xml.namespace.QName name)
Used for on-demand loading. |
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.Ref |
findTypeRef(javax.xml.namespace.QName name)
Used for on-demand loading. |
static SchemaTypeSystemImpl |
forName(java.lang.String name,
java.lang.ClassLoader loader)
|
java.lang.ClassLoader |
getClassLoader()
Returns the classloader used by this loader for resolving types. |
protected java.lang.String |
getMetadataPath()
Provide method to be overriden by user typesystems using a different metadata path |
java.lang.String |
getName()
Returns the name of this loader. |
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)
Used INTERNALLY ONLY by the code output AFTER the type system has been saved and a handle has been established for each type. |
SchemaIdentityConstraint[] |
identityConstraints()
|
boolean |
isIncomplete()
|
boolean |
isNamespaceDefined(java.lang.String namespace)
True if the typeloader contains any definitions in the given namespace. |
void |
loadFromBuilder(SchemaGlobalElement[] globalElements,
SchemaGlobalAttribute[] globalAttributes,
SchemaType[] globalTypes,
SchemaType[] documentTypes,
SchemaType[] attributeTypes)
|
void |
loadFromStscState(StscState state)
|
SchemaModelGroup[] |
modelGroups()
Returns the model groups defined in this loader. |
SchemaAttributeGroup[] |
redefinedAttributeGroups()
|
SchemaType[] |
redefinedGlobalTypes()
|
SchemaModelGroup[] |
redefinedModelGroups()
|
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 |
saveAttributeGroup(SchemaAttributeGroup grp)
|
void |
saveAttributeGroups(SchemaAttributeGroup[] groups)
|
void |
saveGlobalAttribute(SchemaGlobalAttribute attr)
|
void |
saveGlobalAttributes(SchemaGlobalAttribute[] attrs)
|
void |
saveGlobalElement(SchemaGlobalElement elt)
|
void |
saveGlobalElements(SchemaGlobalElement[] elts)
|
void |
saveIdentityConstraint(SchemaIdentityConstraint idc)
|
void |
saveIdentityConstraints(SchemaIdentityConstraint[] idcs)
|
void |
saveModelGroup(SchemaModelGroup grp)
|
void |
saveModelGroups(SchemaModelGroup[] groups)
|
void |
saveToDirectory(java.io.File classDir)
Saves this type system 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. |
SchemaTypeSystem |
typeSystemForName(java.lang.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 |
| 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, findAttribute, findAttributeGroup, findAttributeType, findDocumentType, findElement, findModelGroup, findType, newDomImplementation, newInstance, newValidatingXMLInputStream, newXmlSaxHandler, parse, parse, parse, parse, parse, parse, parse, parse, typeForSignature |
| Field Detail |
|---|
public static final int DATA_BABE
public static final int MAJOR_VERSION
public static final int MINOR_VERSION
public static final int RELEASE_NUMBER
public static final int FILETYPE_SCHEMAINDEX
public static final int FILETYPE_SCHEMATYPE
public static final int FILETYPE_SCHEMAELEMENT
public static final int FILETYPE_SCHEMAATTRIBUTE
public static final int FILETYPE_SCHEMAPOINTER
public static final int FILETYPE_SCHEMAMODELGROUP
public static final int FILETYPE_SCHEMAATTRIBUTEGROUP
public static final int FILETYPE_SCHEMAIDENTITYCONSTRAINT
public static final int FLAG_PART_SKIPPABLE
public static final int FLAG_PART_FIXED
public static final int FLAG_PART_NILLABLE
public static final int FLAG_PART_BLOCKEXT
public static final int FLAG_PART_BLOCKREST
public static final int FLAG_PART_BLOCKSUBST
public static final int FLAG_PART_ABSTRACT
public static final int FLAG_PART_FINALEXT
public static final int FLAG_PART_FINALREST
public static final int FLAG_PROP_ISATTR
public static final int FLAG_PROP_JAVASINGLETON
public static final int FLAG_PROP_JAVAOPTIONAL
public static final int FLAG_PROP_JAVAARRAY
public static final int FIELD_NONE
public static final int FIELD_GLOBAL
public static final int FIELD_LOCALATTR
public static final int FIELD_LOCALELT
public static java.lang.String METADATA_PACKAGE_GEN
| Constructor Detail |
|---|
public SchemaTypeSystemImpl(java.lang.Class indexclass)
public SchemaTypeSystemImpl(ResourceLoader resourceLoader,
java.lang.String name,
SchemaTypeLoader linker)
public SchemaTypeSystemImpl(java.lang.String nameForSystem)
| Method Detail |
|---|
public static boolean fileContainsTypeSystem(java.io.File file,
java.lang.String name)
public static SchemaTypeSystemImpl forName(java.lang.String name,
java.lang.ClassLoader loader)
public void loadFromBuilder(SchemaGlobalElement[] globalElements,
SchemaGlobalAttribute[] globalAttributes,
SchemaType[] globalTypes,
SchemaType[] documentTypes,
SchemaType[] attributeTypes)
public void loadFromStscState(StscState state)
public boolean isIncomplete()
public void saveToDirectory(java.io.File classDir)
SchemaTypeSystem
saveToDirectory in interface SchemaTypeSystempublic void save(Filer filer)
SchemaTypeSystem
save in interface SchemaTypeSystempublic void saveGlobalElements(SchemaGlobalElement[] elts)
public void saveGlobalAttributes(SchemaGlobalAttribute[] attrs)
public void saveModelGroups(SchemaModelGroup[] groups)
public void saveAttributeGroups(SchemaAttributeGroup[] groups)
public void saveIdentityConstraints(SchemaIdentityConstraint[] idcs)
public void saveGlobalElement(SchemaGlobalElement elt)
public void saveGlobalAttribute(SchemaGlobalAttribute attr)
public void saveModelGroup(SchemaModelGroup grp)
public void saveAttributeGroup(SchemaAttributeGroup grp)
public void saveIdentityConstraint(SchemaIdentityConstraint idc)
public static java.lang.String crackPointer(java.io.InputStream stream)
public SchemaType typeForHandle(java.lang.String handle)
SchemaTypeSystem
typeForHandle in interface SchemaTypeSystempublic SchemaType typeForClassname(java.lang.String classname)
SchemaTypeLoader
typeForClassname in interface SchemaTypeLoaderpublic SchemaComponent resolveHandle(java.lang.String handle)
SchemaTypeSystem
resolveHandle in interface SchemaTypeSystempublic void resolve()
SchemaTypeSystem
resolve in interface SchemaTypeSystempublic boolean isNamespaceDefined(java.lang.String namespace)
SchemaTypeLoader
isNamespaceDefined in interface SchemaTypeLoaderpublic 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[] globalTypes()
SchemaTypeSystem
globalTypes in interface SchemaTypeSystempublic SchemaType[] redefinedGlobalTypes()
public java.io.InputStream getSourceAsStream(java.lang.String sourceName)
SchemaTypeLoaderSchemaComponent.getSourceName().
getSourceAsStream in interface SchemaTypeLoaderpublic SchemaType[] documentTypes()
SchemaTypeSystem
documentTypes in interface SchemaTypeSystempublic SchemaType[] attributeTypes()
SchemaTypeSystem
attributeTypes in interface SchemaTypeSystempublic SchemaGlobalElement[] globalElements()
SchemaTypeSystem
globalElements in interface SchemaTypeSystempublic SchemaGlobalAttribute[] globalAttributes()
SchemaTypeSystem
globalAttributes in interface SchemaTypeSystempublic SchemaModelGroup[] modelGroups()
SchemaTypeSystem
modelGroups in interface SchemaTypeSystempublic SchemaModelGroup[] redefinedModelGroups()
public SchemaAttributeGroup[] attributeGroups()
SchemaTypeSystem
attributeGroups in interface SchemaTypeSystempublic SchemaAttributeGroup[] redefinedAttributeGroups()
public SchemaAnnotation[] annotations()
SchemaTypeSystem
annotations in interface SchemaTypeSystempublic SchemaIdentityConstraint[] identityConstraints()
public java.lang.ClassLoader getClassLoader()
SchemaTypeSystem
getClassLoader in interface SchemaTypeSystempublic java.lang.String handleForType(SchemaType type)
public java.lang.String getName()
SchemaTypeSystem
getName in interface SchemaTypeSystempublic SchemaTypeSystem typeSystemForName(java.lang.String name)
protected java.lang.String getMetadataPath()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||