org.jbind.xml.schema.cmp
Class SimpleType

java.lang.Object
  extended byorg.jbind.xml.schema.cmp.Component
      extended byorg.jbind.xml.schema.cmp.AbstractType
          extended byorg.jbind.xml.schema.cmp.SimpleType
All Implemented Interfaces:
IAnyType, IComponent, IHasBindingAttributes, IHasLocation, ISimpleType, ISourceInfo
Direct Known Subclasses:
AbstractListType, BuiltInSimpleType, RestrictedSimpleType, UnionType

public abstract class SimpleType
extends AbstractType
implements ISimpleType


Constructor Summary
SimpleType(ISourceInfo aSourceInfo, java.lang.String aNamespace, java.lang.String aName, java.lang.String aRole, java.util.Set aFinalTypes)
           
 
Method Summary
 ISimpleType getSimpleContentType()
          Gets the type of the simple content.
 java.util.Map getXPathMethods()
          Gets the map of XPath methods that are available for this type.
 boolean isComplex()
          Checks if the type is a complex type.
 boolean isExtension()
          Checks if the type was derived by extension from its direct base type.
 boolean isSimple()
          Checks if the type is a simple type.
 
Methods inherited from class org.jbind.xml.schema.cmp.AbstractType
addDirectSubtype, addFinalType, canBeOverloadedBy, checkConstraints, createData, createEmptyData, createUncheckedData, doCreateEmptyData, getAttrDesc, getAttributesModel, getBaseType, getConstraints, getContentModel, getDataCreator, getDirectSubtypes, getElemDesc, getRoleName, getSubtypes, getSymbolspace, isAbstract, isActive, isActive, isBaseType, isExtension, isInstanceType, isReference, isRestriction, isUnion, setAttributesModel, setBaseType, setConstraints, setContentModel, setDataCreator, validate
 
Methods inherited from class org.jbind.xml.schema.cmp.Component
addSubComponent, getAnnotation, getBindingAttribute, getBindings, getDefaultedLocalBindingAttribute, getDefaultedLocalStringBindingAttribute, getGlobalRef, getLocalBindingAttribute, getLocalStringBindingAttribute, getLocation, getName, getNamespace, getParentComponent, getPrefixToNamespaceMapping, getStringBindingAttribute, isAnonymous, isTopLevelComponent, setBindings, setParentComponent, visitSubComponents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jbind.xml.core.type.ISimpleType
createRestriction, isApplicable
 
Methods inherited from interface org.jbind.xml.core.type.IAnyType
addDirectSubtype, canBeOverloadedBy, checkConstraints, checkEnclosedConstraints, createData, createEmptyData, createUncheckedData, getAttrDesc, getAttributesModel, getBaseType, getConstraints, getContentModel, getDataCreator, getDirectSubtypes, getElemDesc, getInstanceType, getRoleName, getSimpleStorageType, getSubtypes, isAbstract, isActive, isActive, isBaseType, isExtension, isInstanceType, isRestriction, setBaseType, setConstraints, setDataCreator
 
Methods inherited from interface org.jbind.xml.core.cmp.IComponent
accept, addSubComponent, getBindings, getGlobalRef, getName, getNamespace, getParentComponent, getSymbolspace, isAnonymous, isReference, isTopLevelComponent, setBindings, setParentComponent, validate
 
Methods inherited from interface org.jbind.xml.core.cmp.ISourceInfo
getAnnotation, getPrefixToNamespaceMapping
 
Methods inherited from interface org.jbind.xml.base.IHasLocation
getLocation
 
Methods inherited from interface org.jbind.xml.base.IHasBindingAttributes
getBindingAttribute, getDefaultedLocalBindingAttribute, getDefaultedLocalStringBindingAttribute, getLocalBindingAttribute, getLocalStringBindingAttribute, getStringBindingAttribute
 

Constructor Detail

SimpleType

public SimpleType(ISourceInfo aSourceInfo,
                  java.lang.String aNamespace,
                  java.lang.String aName,
                  java.lang.String aRole,
                  java.util.Set aFinalTypes)
Method Detail

isSimple

public boolean isSimple()
Description copied from interface: IAnyType
Checks if the type is a simple type. Complex types with simple content also return true.

Specified by:
isSimple in interface IAnyType
Returns:
Returns true iff the type is a simple type.

isComplex

public boolean isComplex()
Description copied from interface: IAnyType
Checks if the type is a complex type. Complex type with simple content also return true.

Specified by:
isComplex in interface IAnyType
Returns:
Returns true iff the type is a complex type.

isExtension

public boolean isExtension()
Description copied from interface: IAnyType
Checks if the type was derived by extension from its direct base type.

Specified by:
isExtension in interface IAnyType
Returns:
Returns true iff the type was derived by extension from its base type.

getSimpleContentType

public ISimpleType getSimpleContentType()
Description copied from interface: IAnyType
Gets the type of the simple content. If this type is a simple type then this type itself is returned. If this type is a complex type with simple content then the simple base type of this type is returned. If this type is a complex type with complex content then null is returned.

Specified by:
getSimpleContentType in interface IAnyType
Returns:
(optional).

getXPathMethods

public final java.util.Map getXPathMethods()
Description copied from interface: IAnyType
Gets the map of XPath methods that are available for this type.

Specified by:
getXPathMethods in interface IAnyType
Returns:
(required). A map that maps strings to #IXPathMethods.