public class SchemaTypeSystemImpl extends SchemaTypeLoaderBase implements SchemaTypeSystem
| Modifier | Constructor and Description |
|---|---|
protected |
SchemaTypeSystemImpl() |
|
SchemaTypeSystemImpl(Class<?> indexclass) |
|
SchemaTypeSystemImpl(ResourceLoader resourceLoader,
String name,
SchemaTypeLoader linker) |
|
SchemaTypeSystemImpl(String nameForSystem) |
| Modifier and Type | Method and Description |
|---|---|
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 String |
crackPointer(InputStream stream) |
SchemaType[] |
documentTypes()
Returns the document types defined in this loader.
|
SchemaAttributeGroup.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 SchemaTypeSystemImpl |
forName(String name,
ClassLoader loader) |
ClassLoader |
getClassLoader()
Returns the classloader used by this loader for resolving types.
|
String |
getMetadataPath()
Provide method to be overridden by user typesystems using a different metadata path
|
String |
getName()
Returns the name of this loader.
|
InputStream |
getSourceAsStream(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.
|
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(String namespace)
True if the typeloader contains any definitions in the given namespace.
|
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(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(File classDir)
Saves this type system to a directory.
|
SchemaType |
typeForClassname(String classname)
Finds a type for a given fully-qualified XML Bean classname
|
SchemaType |
typeForHandle(String handle)
Locates a type, element, or attribute using the handle.
|
compilePath, compilePath, compileQuery, compileQuery, findAttribute, findAttributeGroup, findAttributeType, findDocumentType, findElement, findModelGroup, findType, newDomImplementation, newInstance, newXmlSaxHandler, parse, parse, parse, parse, parse, parse, parse, typeForSignatureclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompilePath, compileQuery, findAttribute, findAttributeGroup, findAttributeType, findDocumentType, findElement, findModelGroup, findType, newDomImplementation, newInstance, newXmlSaxHandler, parse, parse, parse, parse, parse, parse, parse, typeForSignaturepublic 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 String METADATA_PACKAGE_GEN
There are two properties: METADATA_PACKAGE_GEN - used for generating metadata and METADATA_PACKAGE_LOAD - used for loading the metadata. Most of the time they have the same value, with one exception, during the repackage process scomp needs to load from old package and generate into a new package.
protected SchemaTypeSystemImpl()
public SchemaTypeSystemImpl(Class<?> indexclass)
public SchemaTypeSystemImpl(ResourceLoader resourceLoader, String name, SchemaTypeLoader linker)
public SchemaTypeSystemImpl(String nameForSystem)
public static SchemaTypeSystemImpl forName(String name, ClassLoader loader)
public void loadFromStscState(StscState state)
public boolean isIncomplete()
public void saveToDirectory(File classDir)
SchemaTypeSystemsaveToDirectory in interface SchemaTypeSystempublic void save(Filer filer)
SchemaTypeSystemsave 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 String crackPointer(InputStream stream)
public SchemaType typeForHandle(String handle)
SchemaTypeSystemtypeForHandle in interface SchemaTypeSystempublic SchemaType typeForClassname(String classname)
SchemaTypeLoadertypeForClassname in interface SchemaTypeLoaderpublic SchemaComponent resolveHandle(String handle)
SchemaTypeSystemresolveHandle in interface SchemaTypeSystempublic void resolve()
SchemaTypeSystemresolve in interface SchemaTypeSystempublic boolean isNamespaceDefined(String namespace)
SchemaTypeLoaderisNamespaceDefined in interface SchemaTypeLoaderpublic SchemaType.Ref findTypeRef(QName name)
SchemaTypeLoaderfindTypeRef in interface SchemaTypeLoaderpublic SchemaType.Ref findDocumentTypeRef(QName name)
SchemaTypeLoaderfindDocumentTypeRef in interface SchemaTypeLoaderpublic SchemaType.Ref findAttributeTypeRef(QName name)
SchemaTypeLoaderfindAttributeTypeRef in interface SchemaTypeLoaderpublic SchemaGlobalElement.Ref findElementRef(QName name)
SchemaTypeLoaderfindElementRef in interface SchemaTypeLoaderpublic SchemaGlobalAttribute.Ref findAttributeRef(QName name)
SchemaTypeLoaderfindAttributeRef in interface SchemaTypeLoaderpublic SchemaModelGroup.Ref findModelGroupRef(QName name)
SchemaTypeLoaderfindModelGroupRef in interface SchemaTypeLoaderpublic SchemaAttributeGroup.Ref findAttributeGroupRef(QName name)
SchemaTypeLoaderfindAttributeGroupRef in interface SchemaTypeLoaderpublic SchemaIdentityConstraint.Ref findIdentityConstraintRef(QName name)
SchemaTypeLoaderfindIdentityConstraintRef in interface SchemaTypeLoaderpublic SchemaType[] globalTypes()
SchemaTypeSystemglobalTypes in interface SchemaTypeSystempublic SchemaType[] redefinedGlobalTypes()
public InputStream getSourceAsStream(String sourceName)
SchemaTypeLoaderSchemaComponent.getSourceName().getSourceAsStream in interface SchemaTypeLoaderpublic SchemaType[] documentTypes()
SchemaTypeSystemdocumentTypes in interface SchemaTypeSystempublic SchemaType[] attributeTypes()
SchemaTypeSystemattributeTypes in interface SchemaTypeSystempublic SchemaGlobalElement[] globalElements()
SchemaTypeSystemglobalElements in interface SchemaTypeSystempublic SchemaGlobalAttribute[] globalAttributes()
SchemaTypeSystemglobalAttributes in interface SchemaTypeSystempublic SchemaModelGroup[] modelGroups()
SchemaTypeSystemmodelGroups in interface SchemaTypeSystempublic SchemaModelGroup[] redefinedModelGroups()
public SchemaAttributeGroup[] attributeGroups()
SchemaTypeSystemattributeGroups in interface SchemaTypeSystempublic SchemaAttributeGroup[] redefinedAttributeGroups()
public SchemaAnnotation[] annotations()
SchemaTypeSystemannotations in interface SchemaTypeSystempublic SchemaIdentityConstraint[] identityConstraints()
public ClassLoader getClassLoader()
SchemaTypeSystemgetClassLoader in interface SchemaTypeSystempublic String handleForType(SchemaType type)
public String getName()
SchemaTypeSystemgetName in interface SchemaTypeSystempublic String getMetadataPath()