DLESE Tools
v1.6.0

org.dlese.dpc.xml.schema
Class SimpleType

java.lang.Object
  extended by org.dlese.dpc.xml.schema.GenericType
      extended by org.dlese.dpc.xml.schema.SimpleType
All Implemented Interfaces:
GlobalDef
Direct Known Subclasses:
ComplexType

public class SimpleType
extends GenericType

Wrapper for SimpleType definitions in XML Schemas. Filters out annotation elements for now

Author:
ostwald

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
SimpleType(Element element, String location, Namespace namespace, SchemaReader schemaReader)
          Constructor for the SimpleType object
 
Method Summary
 int getDataType()
          Gets the dataType attribute of the SimpleType object
 GlobalDef getEnumerationBaseType()
          Returns the typeDef for the base enumeration type, or null if this SimpleType is not an enumeration
 List getSimpleEnumerationValues()
          Gets the enumerationValues attribute of the SimpleType object
 List getUnionMemberTypeDefs()
          Get a list of the type definitions for the members of a union type
 String[] getUnionMemberTypeNames()
          Gets the unionMemberTypes attribute of the SimpleType object
 String getUnionMemberTypesAsString()
          Gets the unionMemberTypesAsString attribute of the SimpleType object
 boolean isComboUnionType()
          comboUnion types are enumerations with one additional member of either "xsd:string" or "stringTextType".
 boolean isEnumeration()
          Gets the enumeration attribute of the SimpleType object
 boolean isUnion()
          Gets the union attribute of the SimpleType object
protected static void prtln(String s)
           
 String toString()
          Description of the Method
 
Methods inherited from class org.dlese.dpc.xml.schema.GenericType
extractDocumentation, filterChildren, filterChildren, getChildren, getDocumentation, getElement, getElementAsXml, getEnumerationValues, getEnumerationValues, getFirstChild, getLocation, getName, getNamespace, getQualifiedInstanceName, getQualifiedName, getSchemaReader, getType, getXsdPrefix, isAnyType, isAttributeGroup, isBuiltIn, isComplexType, isEnumerationType, isGlobalAttribute, isGlobalDeclaration, isGlobalElement, isInline, isModelGroup, isSimpleType, isTypeDef, printElements, setInline
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleType

public SimpleType(Element element,
                  String location,
                  Namespace namespace,
                  SchemaReader schemaReader)
Constructor for the SimpleType object

Parameters:
element - Description of the Parameter
location - Description of the Parameter
Method Detail

getDataType

public int getDataType()
Gets the dataType attribute of the SimpleType object

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

isEnumeration

public boolean isEnumeration()
Gets the enumeration attribute of the SimpleType object

Returns:
The enumeration value

getEnumerationBaseType

public GlobalDef getEnumerationBaseType()
Returns the typeDef for the base enumeration type, or null if this SimpleType is not an enumeration


isUnion

public boolean isUnion()
Gets the union attribute of the SimpleType object

Returns:
The union value

getUnionMemberTypesAsString

public String getUnionMemberTypesAsString()
Gets the unionMemberTypesAsString attribute of the SimpleType object

Returns:
The unionMemberTypesAsString value

getUnionMemberTypeNames

public String[] getUnionMemberTypeNames()
Gets the unionMemberTypes attribute of the SimpleType object

Returns:
The unionMemberTypes value

getUnionMemberTypeDefs

public List getUnionMemberTypeDefs()
Get a list of the type definitions for the members of a union type


isComboUnionType

public boolean isComboUnionType()
comboUnion types are enumerations with one additional member of either "xsd:string" or "stringTextType". The are rendered as a textInput with a drop-down menu of choices


getSimpleEnumerationValues

public List getSimpleEnumerationValues()
Gets the enumerationValues attribute of the SimpleType object

Returns:
The enumerationValues value

toString

public String toString()
Description of the Method

Specified by:
toString in interface GlobalDef
Overrides:
toString in class GenericType
Returns:
Description of the Return Value

prtln

protected static void prtln(String s)

DLESE Tools
v1.6.0