public class SchemaHolder extends HolderBase
finish()
method actually generates the includes.Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
SchemaHolder(SchemaElement schema)
Constructor for existing schema definition file.
|
SchemaHolder(java.lang.String uri)
Constructor for new schema definition file.
|
Modifier and Type | Method and Description |
---|---|
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.
|
addReference, getFileName, getNamespace, getPrefix, getReferences, isExistingFile, isModifiable, setFileName
private final SchemaElement m_schema
private final UniqueNameSet m_typeNameSet
private final UniqueNameSet m_elementNameSet
private java.util.Set m_fixedSet
public SchemaHolder(java.lang.String uri)
uri
- (null
if no-namespace schema)public SchemaHolder(SchemaElement schema)
schema
- schema definitionpublic SchemaElement getSchema()
public java.lang.String addTypeName(java.lang.String base)
base
- name to try addingpublic java.lang.String addElementName(java.lang.String base)
base
- name to try addingprotected void addNamespaceDecl(java.lang.String prefix, java.lang.String uri)
addNamespaceDecl
in class HolderBase
prefix
- uri
- public void finish()
finish
in class HolderBase