Package org.dlese.dpc.xml.schema
Interface GlobalDef
- All Known Implementing Classes:
AttributeGroup,BuiltInType,ComplexType,GenericType,GlobalAttribute,GlobalDeclaration,GlobalElement,ModelGroup,SimpleType
public interface GlobalDef
Interface for classes encapsulating XML Schema Elements, such as Elements, Attributes, and Type Definitions. There are two
"families" of GlobalDefs: type definitions and declarations. Type definitions include GenericType, BuiltInType, SimpleType and ComplexType.
Global Declarations include GlobalElement and GlobalAttributes.
- Author:
- ostwald
$Id $
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionintReturns an integer contant that specifies whether this GlobalDef is Generic, Simple, Complex, Global or Built-in datatype.org.dom4j.ElementGets the element attribute of the GlobalDef objectReturns string representation of URI to the schema file in which this GlobalDef is defined.getName()Returns the dataType name for this GlobalDef (e.g., "union.dateType", "stringTextType", etc).org.dom4j.Namespaceuse prefix for namespace as defined at the instance level.getType()Returns string representation of the Global Def's dataType (e.g., "simpleType", "complexType", etc).booleanbooleanbooleanGets the builtIn attribute of the GlobalDef objectbooleanGets the complexType attribute of the GlobalDef objectbooleanbooleanGets the globalElement attribute of the GlobalDef objectbooleanbooleanbooleanGets the simpleType attribute of the GlobalDef objectbooleanGets the builtIn attribute of the GlobalDef objecttoString()Description of the Method
-
Field Details
-
GENERIC_TYPE
static final int GENERIC_TYPE- See Also:
-
SIMPLE_TYPE
static final int SIMPLE_TYPE- See Also:
-
COMPLEX_TYPE
static final int COMPLEX_TYPE- See Also:
-
GLOBAL_DECLARATION
static final int GLOBAL_DECLARATION- See Also:
-
GLOBAL_ELEMENT
static final int GLOBAL_ELEMENT- See Also:
-
GLOBAL_ATTRIBUTE
static final int GLOBAL_ATTRIBUTE- See Also:
-
BUILT_IN_TYPE
static final int BUILT_IN_TYPE- See Also:
-
MODEL_GROUP
static final int MODEL_GROUP- See Also:
-
ATTRIBUTE_GROUP
static final int ATTRIBUTE_GROUP- See Also:
-
-
Method Details
-
getDataType
int getDataType()Returns an integer contant that specifies whether this GlobalDef is Generic, Simple, Complex, Global or Built-in datatype.- Returns:
- The dataType value
-
getType
String getType()Returns string representation of the Global Def's dataType (e.g., "simpleType", "complexType", etc).- Returns:
- The type value
-
getDocumentation
String getDocumentation() -
getName
String getName()Returns the dataType name for this GlobalDef (e.g., "union.dateType", "stringTextType", etc).- Returns:
- The name value
-
getNamespace
org.dom4j.Namespace getNamespace() -
getQualifiedName
String getQualifiedName() -
getQualifiedInstanceName
String getQualifiedInstanceName()use prefix for namespace as defined at the instance level. NOTE: namespaces may not be defined at the instance level! -
getLocation
String getLocation()Returns string representation of URI to the schema file in which this GlobalDef is defined.- Returns:
- The location value
-
getElement
org.dom4j.Element getElement()Gets the element attribute of the GlobalDef object- Returns:
- The element value
-
getElementAsXml
String getElementAsXml() -
toString
String toString()Description of the Method -
getSchemaReader
SchemaReader getSchemaReader() -
isTypeDef
boolean isTypeDef()Gets the builtIn attribute of the GlobalDef object- Returns:
- The builtIn value
-
isBuiltIn
boolean isBuiltIn()Gets the builtIn attribute of the GlobalDef object- Returns:
- The builtIn value
-
isAnyType
boolean isAnyType() -
isSimpleType
boolean isSimpleType()Gets the simpleType attribute of the GlobalDef object- Returns:
- The simpleType value
-
isComplexType
boolean isComplexType()Gets the complexType attribute of the GlobalDef object- Returns:
- The complexType value
-
isModelGroup
boolean isModelGroup() -
isAttributeGroup
boolean isAttributeGroup() -
isGlobalDeclaration
boolean isGlobalDeclaration()Gets the globalElement attribute of the GlobalDef object- Returns:
- The globalElement value
-
isGlobalElement
boolean isGlobalElement() -
isGlobalAttribute
boolean isGlobalAttribute()
-