public class CommonSchema
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
COMMON_TYPES
The common types schema filename
|
protected org.w3c.dom.Document |
commonTypes
The DOM Document object.
|
protected DOMParser |
parser
The local DOM parser reference
|
protected java.util.ArrayList<AcsType> |
typeList
The list of types on the schema
|
| Constructor and Description |
|---|
CommonSchema()
Parse the schema file and initialize the class.
|
| Modifier and Type | Method and Description |
|---|---|
AcsType |
getType(java.lang.String name)
Get a type (simple or complex) by name.
|
AcsAttribute |
readAttribute(org.w3c.dom.Node one)
Read a DOM attribute node and return a new AcsAttribute object
|
java.lang.String |
readDocumentation(org.w3c.dom.Node anno)
Read a DOM annotation node with documentation, and return the string documentation.
|
void |
searchComplexTypes(org.w3c.dom.Document doc,
java.lang.String namespace)
Search for ComplexTypes in the parsed document and add them to the Arraylist.
|
void |
searchSimpleTypes(org.w3c.dom.Document doc,
java.lang.String namespace)
Search for SimpleTypes in the parsed document and add them to the Arraylist.
|
protected static java.lang.String COMMON_TYPES
protected DOMParser parser
protected org.w3c.dom.Document commonTypes
protected java.util.ArrayList<AcsType> typeList
public CommonSchema()
TODO: add all the classic schema definitions
public void searchSimpleTypes(org.w3c.dom.Document doc,
java.lang.String namespace)
doc - The DOM document to searchnamespace - The namespace that those types should havepublic AcsAttribute readAttribute(org.w3c.dom.Node one)
node - the DOM attribute nodepublic java.lang.String readDocumentation(org.w3c.dom.Node anno)
anno - the DOM nodepublic void searchComplexTypes(org.w3c.dom.Document doc,
java.lang.String namespace)
doc - The DOM document to searchnamespace - The namespace that those types should havepublic AcsType getType(java.lang.String name)
name - the name of the type