public class GlobalDeclaration extends java.lang.Object implements GlobalDef
Global Declarations do NOT define a data type or model, but they do define a construct that can be referred to by other schema elements via the "ref" attribute.
| Modifier and Type | Field and Description |
|---|---|
protected static boolean |
debug |
protected java.lang.String |
documentation |
protected org.dom4j.Element |
element |
protected java.lang.String |
location |
protected java.lang.String |
name |
protected org.dom4j.Namespace |
namespace |
protected SchemaReader |
schemaReader |
protected java.lang.String |
type |
protected java.lang.String |
xsdPrefix |
ATTRIBUTE_GROUP, BUILT_IN_TYPE, COMPLEX_TYPE, GENERIC_TYPE, GLOBAL_ATTRIBUTE, GLOBAL_DECLARATION, GLOBAL_ELEMENT, MODEL_GROUP, SIMPLE_TYPE| Constructor and Description |
|---|
GlobalDeclaration(org.dom4j.Element element,
java.lang.String location,
org.dom4j.Namespace namespace,
SchemaReader schemaReader)
Constructor for the GlobalDeclaration object
|
| Modifier and Type | Method and Description |
|---|---|
void |
extractDocumentation() |
int |
getDataType()
Gets the dataType attribute of the GlobalDeclaration object
|
java.lang.String |
getDocumentation() |
org.dom4j.Element |
getElement()
Gets the element attribute of the GlobalDeclaration object
|
java.lang.String |
getElementAsXml() |
java.lang.String |
getLocation()
Gets the location attribute of the GlobalDeclaration object
|
java.lang.String |
getName()
Gets the name attribute of the GlobalDeclaration object
|
org.dom4j.Namespace |
getNamespace()
Gets the namespace attribute of the GlobalDeclaration object
|
java.lang.String |
getQualifiedInstanceName()
use prefix for namespace as defined at the instance level.
|
java.lang.String |
getQualifiedName() |
SchemaReader |
getSchemaReader() |
java.lang.String |
getType()
Gets the type attribute of the GlobalDeclaration object
|
boolean |
isAnyType() |
boolean |
isAttributeGroup() |
boolean |
isBuiltIn()
Gets the builtIn attribute of the GlobalDeclaration object
|
boolean |
isComplexType()
Gets the complexType attribute of the GlobalDeclaration object
|
boolean |
isGlobalAttribute() |
boolean |
isGlobalDeclaration()
Gets the GlobalDeclaration attribute of the GlobalDeclaration object
|
boolean |
isGlobalElement() |
boolean |
isModelGroup() |
boolean |
isSimpleType()
Gets the simpleType attribute of the GlobalDeclaration object
|
boolean |
isTypeDef()
Gets the builtIn attribute of the GlobalDef object
|
protected static void |
prtln(java.lang.String s) |
protected static void |
prtlnErr(java.lang.String s) |
java.lang.String |
toString()
NOT YET DOCUMENTED
|
protected static boolean debug
protected java.lang.String name
protected java.lang.String type
protected org.dom4j.Element element
protected java.lang.String location
protected org.dom4j.Namespace namespace
protected SchemaReader schemaReader
protected java.lang.String documentation
protected java.lang.String xsdPrefix
public GlobalDeclaration(org.dom4j.Element element,
java.lang.String location,
org.dom4j.Namespace namespace,
SchemaReader schemaReader)
element - NOT YET DOCUMENTEDlocation - NOT YET DOCUMENTEDnamespace - NOT YET DOCUMENTEDpublic SchemaReader getSchemaReader()
getSchemaReader in interface GlobalDefpublic boolean isTypeDef()
GlobalDefpublic void extractDocumentation()
public java.lang.String getDocumentation()
getDocumentation in interface GlobalDefpublic boolean isSimpleType()
isSimpleType in interface GlobalDefpublic boolean isComplexType()
isComplexType in interface GlobalDefpublic boolean isModelGroup()
isModelGroup in interface GlobalDefpublic boolean isGlobalDeclaration()
isGlobalDeclaration in interface GlobalDefpublic boolean isGlobalAttribute()
isGlobalAttribute in interface GlobalDefpublic boolean isGlobalElement()
isGlobalElement in interface GlobalDefpublic boolean isAttributeGroup()
isAttributeGroup in interface GlobalDefpublic boolean isBuiltIn()
public int getDataType()
getDataType in interface GlobalDefpublic java.lang.String getType()
public java.lang.String getName()
public java.lang.String getQualifiedName()
getQualifiedName in interface GlobalDefpublic java.lang.String getQualifiedInstanceName()
getQualifiedInstanceName in interface GlobalDefpublic org.dom4j.Namespace getNamespace()
getNamespace in interface GlobalDefpublic java.lang.String getLocation()
getLocation in interface GlobalDefpublic org.dom4j.Element getElement()
getElement in interface GlobalDefpublic java.lang.String getElementAsXml()
getElementAsXml in interface GlobalDefpublic java.lang.String toString()
protected static void prtln(java.lang.String s)
protected static void prtlnErr(java.lang.String s)