|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jibx.util.HolderBase
org.jibx.schema.SchemaHolder
public class SchemaHolder
External data for a schema definition. This tracks references to other schemas, along with the associated namespace
information. The finish()
method actually generates the includes.
Field Summary | |
---|---|
private UniqueNameSet |
m_elementNameSet
Set of element names defined in schema (also used for group/attributeGroup; only for new definitions). |
private java.util.Set |
m_fixedSet
Set of schemas imported into this schema. |
private SchemaElement |
m_schema
Actual schema definition. |
private UniqueNameSet |
m_typeNameSet
Set of type names defined in schema (only for new schema definitions). |
Constructor Summary | |
---|---|
SchemaHolder(SchemaElement schema)
Constructor for existing schema definition file. |
|
SchemaHolder(java.lang.String uri)
Constructor for new schema definition file. |
Method Summary | |
---|---|
java.lang.String |
addElementName(java.lang.String base)
Add element name to set defined. |
protected void |
addNamespaceDecl(java.lang.String prefix,
java.lang.String uri)
Implementation method to handle adding a namespace declaration. |
java.lang.String |
addTypeName(java.lang.String base)
Add type name to set defined. |
void |
finish()
Implementation method to handle references from this schema to other schemas. |
SchemaElement |
getSchema()
Get the schema definition. |
Methods inherited from class org.jibx.util.HolderBase |
---|
addReference, getFileName, getNamespace, getPrefix, getReferences, isExistingFile, isModifiable, setFileName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final SchemaElement m_schema
private final UniqueNameSet m_typeNameSet
private final UniqueNameSet m_elementNameSet
private java.util.Set m_fixedSet
Constructor Detail |
---|
public SchemaHolder(java.lang.String uri)
uri
- (null
if no-namespace schema)public SchemaHolder(SchemaElement schema)
schema
- schema definitionMethod Detail |
---|
public SchemaElement getSchema()
public java.lang.String addTypeName(java.lang.String base)
base
- name to try adding
public java.lang.String addElementName(java.lang.String base)
base
- name to try adding
protected void addNamespaceDecl(java.lang.String prefix, java.lang.String uri)
addNamespaceDecl
in class HolderBase
prefix
- uri
- public void finish()
finish
in class HolderBase
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |