org.jbind.xml.schema.cmp
Class RestrictedSimpleType
java.lang.Object
org.jbind.xml.schema.cmp.Component
org.jbind.xml.schema.cmp.AbstractType
org.jbind.xml.schema.cmp.SimpleType
org.jbind.xml.schema.cmp.RestrictedSimpleType
- All Implemented Interfaces:
- IAnySimpleType, IAnyType, IComponent, IHasBindingAttributes, IHasLocation, IRestrictedSimpleType, ISimpleType, ISourceInfo
- Direct Known Subclasses:
- RestrictedAtomicType, RestrictedListType, RestrictedUnionType
- public abstract class RestrictedSimpleType
- extends SimpleType
- implements IRestrictedSimpleType
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.IAnyType |
addDirectSubtype, canBeOverloadedBy, checkConstraints, checkEnclosedConstraints, createData, createEmptyData, createUncheckedData, getAttrDesc, getAttributesModel, getBaseType, getConstraints, getContentModel, getDataCreator, getDirectSubtypes, getElemDesc, getInstanceType, 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 |
accept, addSubComponent, getBindings, getGlobalRef, getName, getNamespace, getParentComponent, getSymbolspace, isAnonymous, isReference, isTopLevelComponent, setBindings, setParentComponent, validate |
RestrictedSimpleType
public RestrictedSimpleType(ISourceInfo aSourceInfo,
java.lang.String aNamespace,
java.lang.String aName,
java.lang.String aRole,
java.util.Set aFinalTypes,
IConstraintViolations aViolations)
createRestriction
public final 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.
- Specified by:
createRestriction
in interface ISimpleType
- Returns:
- (required).
getSimpleStorageType
public final 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
.
- Specified by:
getSimpleStorageType
in interface IAnyType
- Returns:
- (optional).
isApplicable
public 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.