Package org.dlese.dpc.xml.schema
Class GlobalDeclaration
java.lang.Object
org.dlese.dpc.xml.schema.GlobalDeclaration
- All Implemented Interfaces:
GlobalDef
- Direct Known Subclasses:
AttributeGroup,GlobalAttribute,GlobalElement
Wrapper for global delclarations in an XML Schema, which are defined as an immediate child of the
schema element.
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.
- Author:
- Jonathan Ostwald
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static booleanprotected Stringprotected org.dom4j.Elementprotected Stringprotected Stringprotected org.dom4j.Namespaceprotected SchemaReaderprotected Stringprotected StringFields inherited from interface org.dlese.dpc.xml.schema.GlobalDef
ATTRIBUTE_GROUP, BUILT_IN_TYPE, COMPLEX_TYPE, GENERIC_TYPE, GLOBAL_ATTRIBUTE, GLOBAL_DECLARATION, GLOBAL_ELEMENT, MODEL_GROUP, SIMPLE_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionGlobalDeclaration(org.dom4j.Element element, String location, org.dom4j.Namespace namespace, SchemaReader schemaReader) Constructor for the GlobalDeclaration object -
Method Summary
Modifier and TypeMethodDescriptionvoidintGets the dataType attribute of the GlobalDeclaration objectorg.dom4j.ElementGets the element attribute of the GlobalDeclaration objectGets the location attribute of the GlobalDeclaration objectgetName()Gets the name attribute of the GlobalDeclaration objectorg.dom4j.NamespaceGets the namespace attribute of the GlobalDeclaration objectuse prefix for namespace as defined at the instance level.getType()Gets the type attribute of the GlobalDeclaration objectbooleanbooleanbooleanGets the builtIn attribute of the GlobalDeclaration objectbooleanGets the complexType attribute of the GlobalDeclaration objectbooleanbooleanGets the GlobalDeclaration attribute of the GlobalDeclaration objectbooleanbooleanbooleanGets the simpleType attribute of the GlobalDeclaration objectbooleanGets the builtIn attribute of the GlobalDef objectprotected static voidprotected static voidtoString()NOT YET DOCUMENTED
-
Field Details
-
debug
protected static boolean debug -
name
-
type
-
element
protected org.dom4j.Element element -
location
-
namespace
protected org.dom4j.Namespace namespace -
schemaReader
-
documentation
-
xsdPrefix
-
-
Constructor Details
-
GlobalDeclaration
public GlobalDeclaration(org.dom4j.Element element, String location, org.dom4j.Namespace namespace, SchemaReader schemaReader) Constructor for the GlobalDeclaration object- Parameters:
element- NOT YET DOCUMENTEDlocation- NOT YET DOCUMENTEDnamespace- NOT YET DOCUMENTED
-
-
Method Details
-
getSchemaReader
- Specified by:
getSchemaReaderin interfaceGlobalDef
-
isTypeDef
public boolean isTypeDef()Description copied from interface:GlobalDefGets the builtIn attribute of the GlobalDef object -
extractDocumentation
public void extractDocumentation() -
getDocumentation
- Specified by:
getDocumentationin interfaceGlobalDef
-
isSimpleType
public boolean isSimpleType()Gets the simpleType attribute of the GlobalDeclaration object- Specified by:
isSimpleTypein interfaceGlobalDef- Returns:
- The simpleType value
-
isComplexType
public boolean isComplexType()Gets the complexType attribute of the GlobalDeclaration object- Specified by:
isComplexTypein interfaceGlobalDef- Returns:
- The complexType value
-
isModelGroup
public boolean isModelGroup()- Specified by:
isModelGroupin interfaceGlobalDef
-
isGlobalDeclaration
public boolean isGlobalDeclaration()Gets the GlobalDeclaration attribute of the GlobalDeclaration object- Specified by:
isGlobalDeclarationin interfaceGlobalDef- Returns:
- The GlobalDeclaration value
-
isGlobalAttribute
public boolean isGlobalAttribute()- Specified by:
isGlobalAttributein interfaceGlobalDef
-
isGlobalElement
public boolean isGlobalElement()- Specified by:
isGlobalElementin interfaceGlobalDef
-
isAttributeGroup
public boolean isAttributeGroup()- Specified by:
isAttributeGroupin interfaceGlobalDef
-
isBuiltIn
public boolean isBuiltIn()Gets the builtIn attribute of the GlobalDeclaration object -
isAnyType
public boolean isAnyType() -
getDataType
public int getDataType()Gets the dataType attribute of the GlobalDeclaration object- Specified by:
getDataTypein interfaceGlobalDef- Returns:
- The dataType value
-
getType
Gets the type attribute of the GlobalDeclaration object -
getName
Gets the name attribute of the GlobalDeclaration object -
getQualifiedName
- Specified by:
getQualifiedNamein interfaceGlobalDef
-
getQualifiedInstanceName
use prefix for namespace as defined at the instance level. NOTE: namespaces may not be defined at the instance level!- Specified by:
getQualifiedInstanceNamein interfaceGlobalDef
-
getNamespace
public org.dom4j.Namespace getNamespace()Gets the namespace attribute of the GlobalDeclaration object- Specified by:
getNamespacein interfaceGlobalDef- Returns:
- The namespace value
-
getLocation
Gets the location attribute of the GlobalDeclaration object- Specified by:
getLocationin interfaceGlobalDef- Returns:
- The location value
-
getElement
public org.dom4j.Element getElement()Gets the element attribute of the GlobalDeclaration object- Specified by:
getElementin interfaceGlobalDef- Returns:
- The element value
-
getElementAsXml
- Specified by:
getElementAsXmlin interfaceGlobalDef
-
toString
NOT YET DOCUMENTED -
prtln
-
prtlnErr
-