fr.tireme.schemadoc.SDSchema.XSD
Class XSDSimpleTypeDefinitionWrapp

java.lang.Object
  extended by fr.tireme.schemadoc.SDSchema.XSD.SDConcreteComponentImpl
      extended by fr.tireme.schemadoc.SDSchema.XSD.SDSchemaContentImpl
          extended by fr.tireme.schemadoc.SDSchema.XSD.XSDSimpleTypeDefinitionWrapp
All Implemented Interfaces:
SDConcreteComponent, SDSchemaContent, SDSimpleType

public class XSDSimpleTypeDefinitionWrapp
extends SDSchemaContentImpl
implements SDSimpleType

Author:
Mike Niemaz (niemaz@xrce.xerox.com)

Field Summary
 
Fields inherited from interface fr.tireme.schemadoc.SDSchema.SDSimpleType
PART_OF_ATTRIBUTE, PART_OF_BOTH, PART_OF_ELEMENT
 
Fields inherited from interface fr.tireme.schemadoc.SDSchema.SDSchemaContent
TYPE_ATTRIBUTE, TYPE_ATTRIBUTE_LABEL, TYPE_ATTRIBUTEGROUP, TYPE_ATTRIBUTEGROUP_LABEL, TYPE_COMPLEXTYPE, TYPE_COMPLEXTYPE_LABEL, TYPE_ELEMENT, TYPE_ELEMENT_LABEL, TYPE_GROUP, TYPE_GROUP_LABEL, TYPE_NOTATION, TYPE_NOTATION_LABEL, TYPE_SIMPLETYPE, TYPE_SIMPLETYPE_LABEL
 
Constructor Summary
XSDSimpleTypeDefinitionWrapp(org.eclipse.xsd.XSDSimpleTypeDefinition xsdSimpleTypeDefinition)
          Constructor for the XSDSimpleTypeDefinitionWrapp object
 
Method Summary
 SDSimpleType getBaseTypeDefinition(SDSchema schema)
          Gets the base type definition
 java.util.Iterator getEnumerationContent()
          Gets the enumeration content
 java.util.List getFacets()
          Gets the list of applied facets
 int getType()
          Provides type to generinc class
 boolean isAnyType()
          Is this type of ANY type?
 boolean isDerived()
          WARNING: not implemented --> always returns false Is this simpleType derived or not?
 boolean isEnumeration()
          Indicates if this simpleType is an enumeration
 boolean isList()
          Indicates if this simpleType is a list
 boolean isSchemaForSchemaNamespace()
          Indicates if this simpleType is in the SDConcreteComponent for SDConcreteComponent Namespace
 boolean isUnion()
          Indicates if this simpleType is a union
 
Methods inherited from class fr.tireme.schemadoc.SDSchema.XSD.SDSchemaContentImpl
getName, getQName, getSchema, getTargetNamespace, isGlobal
 
Methods inherited from class fr.tireme.schemadoc.SDSchema.XSD.SDConcreteComponentImpl
cloneObject, getContainerDomElement, getDomElement, getID, getLocalRootID, getWrappedObject, isAny, isAnyAttribute, isContainerNull, setID
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface fr.tireme.schemadoc.SDSchema.SDSchemaContent
getName, getQName, getSchema, getTargetNamespace, isGlobal
 
Methods inherited from interface fr.tireme.schemadoc.SDSchema.SDConcreteComponent
cloneObject, getContainerDomElement, getDomElement, getID, getLocalRootID, getWrappedObject, isAny, isAnyAttribute, isContainerNull, setID
 

Constructor Detail

XSDSimpleTypeDefinitionWrapp

public XSDSimpleTypeDefinitionWrapp(org.eclipse.xsd.XSDSimpleTypeDefinition xsdSimpleTypeDefinition)
Constructor for the XSDSimpleTypeDefinitionWrapp object

Parameters:
xsdSimpleTypeDefinition - the eclipse xsd representation to wrap
Method Detail

getBaseTypeDefinition

public SDSimpleType getBaseTypeDefinition(SDSchema schema)
Gets the base type definition

Specified by:
getBaseTypeDefinition in interface SDSimpleType
Parameters:
schema - - schema root
Returns:
base type

getFacets

public java.util.List getFacets()
Gets the list of applied facets

Specified by:
getFacets in interface SDSimpleType
Returns:
List - list of facets as string

isAnyType

public boolean isAnyType()
Is this type of ANY type?

Specified by:
isAnyType in interface SDSimpleType
Returns:
boolean - true if ANY type

isEnumeration

public boolean isEnumeration()
Indicates if this simpleType is an enumeration

Specified by:
isEnumeration in interface SDSimpleType
Returns:
true if this simpleType is an enumeration

isList

public boolean isList()
Indicates if this simpleType is a list

Specified by:
isList in interface SDSimpleType
Returns:
true if this simpleType is a list

isUnion

public boolean isUnion()
Indicates if this simpleType is a union

Specified by:
isUnion in interface SDSimpleType
Returns:
true if this simpleType is a union

getEnumerationContent

public java.util.Iterator getEnumerationContent()
Gets the enumeration content

Specified by:
getEnumerationContent in interface SDSimpleType
Returns:
an iterator of the String enumeration content

isSchemaForSchemaNamespace

public boolean isSchemaForSchemaNamespace()
Indicates if this simpleType is in the SDConcreteComponent for SDConcreteComponent Namespace

Specified by:
isSchemaForSchemaNamespace in interface SDSimpleType
Returns:
true if this simpleType is n the SDConcreteComponent for SDConcreteComponent Namespace

getType

public int getType()
Provides type to generinc class

Specified by:
getType in interface SDSchemaContent
See Also:
SDSchemaContent.getType()

isDerived

public boolean isDerived()
WARNING: not implemented --> always returns false Is this simpleType derived or not?

Specified by:
isDerived in interface SDSimpleType
Returns:
boolean - true if derived