|
||||||||||
| 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.
| Constructor Summary | |
|---|---|
SchemaHolder(SchemaElement schema)
Constructor for existing schema definition file. |
|
SchemaHolder(String uri)
Constructor for new schema definition file. |
|
| Method Summary | |
|---|---|
String |
addElementName(String base)
Add element name to set defined. |
protected void |
addNamespaceDecl(String prefix,
String uri)
Implementation method to handle adding a namespace declaration. |
String |
addTypeName(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 |
| Constructor Detail |
|---|
public SchemaHolder(String uri)
uri - (null if no-namespace schema)public SchemaHolder(SchemaElement schema)
schema - schema definition| Method Detail |
|---|
public SchemaElement getSchema()
public String addTypeName(String base)
base - name to try adding
public String addElementName(String base)
base - name to try adding
protected void addNamespaceDecl(String prefix,
String uri)
addNamespaceDecl in class HolderBaseprefix - uri - public void finish()
finish in class HolderBase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||