org.jbind.xml.schema.cmp
Class AnySimpleType

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
                  extended byorg.jbind.xml.schema.cmp.AnySimpleType
All Implemented Interfaces:
IAnySimpleType, IAnyType, IComponent, IHasBindingAttributes, IHasLocation, ISimpleType, ISourceInfo

public class AnySimpleType
extends BuiltInSimpleType


Constructor Summary
AnySimpleType(ISourceInfo aSourceInfo, java.lang.String aName, IAnyType aBaseType, ConstraintType.Checker aChecker, IDataCreator aDataCreator)
           
 
Method Summary
 void accept(IComponentVisitor aVisitor)
          Accepts a visitor.
 ISimpleType createRestriction(ISourceInfo aSourceInfo, java.lang.String aNamespace, java.lang.String aName, java.lang.String aRole, java.util.Set aFinalTypes, IConstraintViolations aViolations)
          Creates a simple type that is a restriction of this type.
 IAnyType getInstanceType()
          Gets the type that instances of this type have.
 java.lang.Class getSimpleStorageType()
          Gets the simple storage type.
 
Methods inherited from class org.jbind.xml.schema.cmp.BuiltInSimpleType
checkEnclosedConstraints, isApplicable, 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.IAnyType
addDirectSubtype, canBeOverloadedBy, checkConstraints, createData, createEmptyData, createUncheckedData, getAttrDesc, getAttributesModel, getBaseType, getConstraints, getContentModel, getDataCreator, getDirectSubtypes, getElemDesc, getRoleName, getSimpleContentType, 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
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

AnySimpleType

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

createRestriction

public ISimpleType createRestriction(ISourceInfo aSourceInfo,
                                     java.lang.String aNamespace,
                                     java.lang.String aName,
                                     java.lang.String aRole,
                                     java.util.Set aFinalTypes,
                                     IConstraintViolations aViolations)
Description copied from interface: ISimpleType
Creates a simple type that is a restriction of this type.

Returns:
(required).

getSimpleStorageType

public java.lang.Class getSimpleStorageType()
Description copied from interface: IAnyType
Gets the simple storage type. The simple storage type is the Java type that is used to store the simple values of this type. A simple storage type can either be a primitive type (like int, boolean, float, ...) or a (simple) reference type (like String). Only non-complex types, i.e. atomic types, list types, union types, and restrictions of them have a simple storage type. In particular, complex types with simple content also return null.

Returns:
(optional).

getInstanceType

public final 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
Overrides:
getInstanceType in class BuiltInSimpleType

accept

public final void accept(IComponentVisitor aVisitor)
                  throws XmlException
Description copied from interface: IComponent
Accepts a visitor. The implementation calls the corresponding visitXXXStart and vistXXXEnd methods of the visitor (e.g. visitComplexTypeStart and visitComplexTypeEnd).

Parameters:
aVisitor - (required).
Throws:
XmlException