org.jbind.xml.schema.cmp
Class BuiltInSimpleType

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

public abstract class BuiltInSimpleType
extends SimpleType
implements IAnySimpleType


Constructor Summary
BuiltInSimpleType(ISourceInfo aSourceInfo, java.lang.String aName, IAnyType aBaseType, ConstraintType.Checker aChecker, IDataCreator aDataCreator)
           
 
Method Summary
 void checkEnclosedConstraints(ICheckContext aContext)
          Checks the enclosed constraints.
 IAnyType getInstanceType()
          Gets the type that instances of this type have.
 boolean isApplicable(ConstraintType aConstraintType)
          Checks if the specified constraint type is applicable to the type.
 boolean isUnion()
           
 
Methods inherited from class org.jbind.xml.schema.cmp.SimpleType
getSimpleContentType, getXPathMethods, isComplex, isExtension, isSimple
 
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, 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
 
Methods inherited from interface org.jbind.xml.core.type.IAnyType
addDirectSubtype, canBeOverloadedBy, checkConstraints, createData, createEmptyData, createUncheckedData, getAttrDesc, getAttributesModel, getBaseType, getConstraints, getContentModel, getDataCreator, getDirectSubtypes, getElemDesc, getRoleName, getSimpleContentType, getSimpleStorageType, getSubtypes, getXPathMethods, isAbstract, isActive, isActive, isBaseType, isComplex, isExtension, isExtension, isInstanceType, isRestriction, isSimple, 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

BuiltInSimpleType

public BuiltInSimpleType(ISourceInfo aSourceInfo,
                         java.lang.String aName,
                         IAnyType aBaseType,
                         ConstraintType.Checker aChecker,
                         IDataCreator aDataCreator)
Method Detail

isApplicable

public final boolean isApplicable(ConstraintType aConstraintType)
Description copied from interface: ISimpleType
Checks if the specified constraint type is applicable to the type.

Specified by:
isApplicable in interface ISimpleType
Parameters:
aConstraintType - (required).
Returns:
Returns true iff the constraint type is applicable on the type.

checkEnclosedConstraints

public void checkEnclosedConstraints(ICheckContext aContext)
Description copied from interface: IAnyType
Checks the enclosed constraints. Depending on the type this method performs the following checks:

Specified by:
checkEnclosedConstraints in interface IAnyType
Parameters:
aContext - (required).

getInstanceType

public IAnyType getInstanceType()
Description copied from interface: IAnyType
Gets the type that instances of this type have. In general a type is also its instance type. In case of union types the instance type is the most specific common base type of all member types of the union.

Specified by:
getInstanceType in interface IAnyType
Returns:
(required).

isUnion

public boolean isUnion()
Specified by:
isUnion in class AbstractType