DLESE Tools
v1.6.0

org.dlese.dpc.xml.schema
Class BuiltInType

java.lang.Object
  extended by org.dlese.dpc.xml.schema.GenericType
      extended by org.dlese.dpc.xml.schema.BuiltInType
All Implemented Interfaces:
GlobalDef

public class BuiltInType
extends GenericType

wrapper for BuiltInType definitions (Element). filters out annotation elements for now


Field Summary
 
Fields inherited from class org.dlese.dpc.xml.schema.GenericType
element, inline, location, name, namespace, path, schemaReader, type, xsdPrefix
 
Fields 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
BuiltInType(String name)
          Constructor -
BuiltInType(String name, Namespace namespace)
           
 
Method Summary
 int getDataType()
          Gets the dataType attribute of the GenericType object
 Element getElement()
          Gets the element attribute of the GenericType object
 String getElementAsXml()
          Gets the elementAsXml attribute of the GenericType object
 String getLocation()
          Gets the location attribute of the GenericType object
 String getName()
          Gets the name attribute of the GenericType object
 Namespace getNamespace()
          Gets the namespace attribute of the GenericType object
 String getQualifiedInstanceName()
          schemaReader is unavailable, so we return a bogus prefix
 String getQualifiedName()
          Gets the qualifiedName attribute of the GenericType object
 SchemaReader getSchemaReader()
          Gets the schemaReader attribute of the GenericType object
 String getType()
          Gets the type attribute of the GenericType object
 String getXsdPrefix()
          The xsdPrefix is the prefix (e.g., "xsd") used to refer to the Schema Datatype namespace (htp:/www.w3.org/2001/XMLSchema.
 boolean isAnyType()
           
 boolean isBuiltIn()
          Gets the builtIn attribute of the GenericType object
 boolean isComplexType()
          Gets the complexType attribute of the GenericType object
 boolean isGlobalAttribute()
          Gets the globalAttribute attribute of the GenericType object
 boolean isGlobalDeclaration()
          Gets the globalDeclaration attribute of the GenericType object
 boolean isGlobalElement()
          Gets the globalElement attribute of the GenericType object
 boolean isSimpleType()
          Gets the simpleType attribute of the GenericType object
 String toString()
          NOT YET DOCUMENTED
 
Methods inherited from class org.dlese.dpc.xml.schema.GenericType
extractDocumentation, filterChildren, filterChildren, getChildren, getDocumentation, getEnumerationValues, getEnumerationValues, getFirstChild, isAttributeGroup, isEnumerationType, isInline, isModelGroup, isTypeDef, printElements, prtln, setInline
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BuiltInType

public BuiltInType(String name)
Constructor -


BuiltInType

public BuiltInType(String name,
                   Namespace namespace)
Method Detail

getSchemaReader

public SchemaReader getSchemaReader()
Description copied from class: GenericType
Gets the schemaReader attribute of the GenericType object

Specified by:
getSchemaReader in interface GlobalDef
Overrides:
getSchemaReader in class GenericType
Returns:
The schemaReader value

isSimpleType

public boolean isSimpleType()
Description copied from class: GenericType
Gets the simpleType attribute of the GenericType object

Specified by:
isSimpleType in interface GlobalDef
Overrides:
isSimpleType in class GenericType
Returns:
The simpleType value

isComplexType

public boolean isComplexType()
Description copied from class: GenericType
Gets the complexType attribute of the GenericType object

Specified by:
isComplexType in interface GlobalDef
Overrides:
isComplexType in class GenericType
Returns:
The complexType value

getXsdPrefix

public String getXsdPrefix()
Description copied from class: GenericType
The xsdPrefix is the prefix (e.g., "xsd") used to refer to the Schema Datatype namespace (htp:/www.w3.org/2001/XMLSchema.

Overrides:
getXsdPrefix in class GenericType
Returns:
The xsdPrefix value

isGlobalElement

public boolean isGlobalElement()
Description copied from class: GenericType
Gets the globalElement attribute of the GenericType object

Specified by:
isGlobalElement in interface GlobalDef
Overrides:
isGlobalElement in class GenericType
Returns:
The globalElement value

isGlobalDeclaration

public boolean isGlobalDeclaration()
Description copied from class: GenericType
Gets the globalDeclaration attribute of the GenericType object

Specified by:
isGlobalDeclaration in interface GlobalDef
Overrides:
isGlobalDeclaration in class GenericType
Returns:
The globalDeclaration value

isGlobalAttribute

public boolean isGlobalAttribute()
Description copied from class: GenericType
Gets the globalAttribute attribute of the GenericType object

Specified by:
isGlobalAttribute in interface GlobalDef
Overrides:
isGlobalAttribute in class GenericType
Returns:
The globalAttribute value

isBuiltIn

public boolean isBuiltIn()
Description copied from class: GenericType
Gets the builtIn attribute of the GenericType object

Specified by:
isBuiltIn in interface GlobalDef
Overrides:
isBuiltIn in class GenericType
Returns:
The builtIn value

getDataType

public int getDataType()
Description copied from class: GenericType
Gets the dataType attribute of the GenericType object

Specified by:
getDataType in interface GlobalDef
Overrides:
getDataType in class GenericType
Returns:
The dataType value

getType

public String getType()
Description copied from class: GenericType
Gets the type attribute of the GenericType object

Specified by:
getType in interface GlobalDef
Overrides:
getType in class GenericType
Returns:
The type value

isAnyType

public boolean isAnyType()
Specified by:
isAnyType in interface GlobalDef
Overrides:
isAnyType in class GenericType

getName

public String getName()
Description copied from class: GenericType
Gets the name attribute of the GenericType object

Specified by:
getName in interface GlobalDef
Overrides:
getName in class GenericType
Returns:
The name value

getQualifiedName

public String getQualifiedName()
Description copied from class: GenericType
Gets the qualifiedName attribute of the GenericType object

Specified by:
getQualifiedName in interface GlobalDef
Overrides:
getQualifiedName in class GenericType
Returns:
The qualifiedName value

getQualifiedInstanceName

public String getQualifiedInstanceName()
schemaReader is unavailable, so we return a bogus prefix

Specified by:
getQualifiedInstanceName in interface GlobalDef
Overrides:
getQualifiedInstanceName in class GenericType
Returns:
The qualifiedInstanceName value

getNamespace

public Namespace getNamespace()
Description copied from class: GenericType
Gets the namespace attribute of the GenericType object

Specified by:
getNamespace in interface GlobalDef
Overrides:
getNamespace in class GenericType
Returns:
The namespace value

getLocation

public String getLocation()
Description copied from class: GenericType
Gets the location attribute of the GenericType object

Specified by:
getLocation in interface GlobalDef
Overrides:
getLocation in class GenericType
Returns:
The location value

getElement

public Element getElement()
Description copied from class: GenericType
Gets the element attribute of the GenericType object

Specified by:
getElement in interface GlobalDef
Overrides:
getElement in class GenericType
Returns:
The element value

getElementAsXml

public String getElementAsXml()
Description copied from class: GenericType
Gets the elementAsXml attribute of the GenericType object

Specified by:
getElementAsXml in interface GlobalDef
Overrides:
getElementAsXml in class GenericType
Returns:
The elementAsXml value

toString

public String toString()
Description copied from class: GenericType
NOT YET DOCUMENTED

Specified by:
toString in interface GlobalDef
Overrides:
toString in class GenericType
Returns:
NOT YET DOCUMENTED

DLESE Tools
v1.6.0