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 GlobalDef
public boolean isTypeDef()
GlobalDef
public void extractDocumentation()
public java.lang.String getDocumentation()
getDocumentation
in interface GlobalDef
public boolean isSimpleType()
isSimpleType
in interface GlobalDef
public boolean isComplexType()
isComplexType
in interface GlobalDef
public boolean isModelGroup()
isModelGroup
in interface GlobalDef
public boolean isGlobalDeclaration()
isGlobalDeclaration
in interface GlobalDef
public boolean isGlobalAttribute()
isGlobalAttribute
in interface GlobalDef
public boolean isGlobalElement()
isGlobalElement
in interface GlobalDef
public boolean isAttributeGroup()
isAttributeGroup
in interface GlobalDef
public boolean isBuiltIn()
public int getDataType()
getDataType
in interface GlobalDef
public java.lang.String getType()
public java.lang.String getName()
public java.lang.String getQualifiedName()
getQualifiedName
in interface GlobalDef
public java.lang.String getQualifiedInstanceName()
getQualifiedInstanceName
in interface GlobalDef
public org.dom4j.Namespace getNamespace()
getNamespace
in interface GlobalDef
public java.lang.String getLocation()
getLocation
in interface GlobalDef
public org.dom4j.Element getElement()
getElement
in interface GlobalDef
public java.lang.String getElementAsXml()
getElementAsXml
in interface GlobalDef
public java.lang.String toString()
protected static void prtln(java.lang.String s)
protected static void prtlnErr(java.lang.String s)