|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents a type.
Method Summary | |
void |
addDirectSubtype(IAnyType aType)
Adds a type to the collection of direct subtypes. |
boolean |
canBeOverloadedBy(IAnyType aType)
Checks if this type can be overloaded by the specified type. |
void |
checkConstraints(ICheckContext aContext)
Checks the constraints of this type. |
void |
checkEnclosedConstraints(ICheckContext aContext)
Checks the enclosed constraints. |
IAnyTypeData |
createData(IDataImpl anImpl)
Creates a data object for the specified data implementation. |
IAnyTypeData |
createEmptyData(IDataImpl aDataImpl)
Creates an empty data object for the specified implementation. |
IAnyTypeData |
createUncheckedData(IDataImpl anImpl)
Creates a data object for the specified data implementation. |
IAttrDesc |
getAttrDesc(java.lang.String aNamespace,
java.lang.String aName,
IHasLocation aHasLocation)
Gets an attribute description. |
IAttributesModel |
getAttributesModel()
Gets the attributes model. |
IAnyType |
getBaseType()
Gets the base type. |
IConstraints |
getConstraints()
Gets the constraints imposed on this type. |
IContentModel |
getContentModel()
Gets the content model. |
IDataCreator |
getDataCreator()
Gets the data creator. |
java.util.Collection |
getDirectSubtypes()
Gets the types that are direct subtypes of this type. |
IElemDesc |
getElemDesc(java.lang.String aNamespace,
java.lang.String aName)
Gets an element description. |
IAnyType |
getInstanceType()
Gets the type that instances of this type have. |
java.lang.String |
getRoleName()
Gets the role name of the type. |
ISimpleType |
getSimpleContentType()
Gets the type of the simple content. |
java.lang.Class |
getSimpleStorageType()
Gets the simple storage type. |
java.util.Collection |
getSubtypes()
Recursively collects the subtypes of this type. |
java.util.Map |
getXPathMethods()
Gets the map of XPath methods that are available for this type. |
boolean |
isAbstract()
Checks if the type is abstract. |
boolean |
isActive(BlockType aBlockType)
Checks if the specified block type is active. |
boolean |
isActive(FinalType aFinalType)
Checks if the specified final type is active. |
boolean |
isBaseType(IAnyType aType)
Checks if this type is a base type of the specified 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 |
isExtension(IAnyType aType)
Checks if this type is an extension of the specified type. |
boolean |
isInstanceType(IAnyType aType)
Checks if this type is an instance type of the specified type. |
boolean |
isRestriction(IAnyType aType)
Checks if this type is a restriction of the specified type. |
boolean |
isSimple()
Checks if the type is a simple type. |
void |
setBaseType(IAnyType aType)
Sets the base type. |
void |
setConstraints(IConstraints aConstraints)
Sets the constraints. |
void |
setDataCreator(IDataCreator aCreator)
Sets the data creator. |
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 |
Method Detail |
public IAttrDesc getAttrDesc(java.lang.String aNamespace, java.lang.String aName, IHasLocation aHasLocation) throws XmlException
aNamespace
- (required).aName
- (required).aHasLocation
- (optional).
XmlException
- Raised iff the specified attribute is not allowed for the
type.public IElemDesc getElemDesc(java.lang.String aNamespace, java.lang.String aName) throws XmlException
aNamespace
- (required).aName
- (required).
XmlException
- Raised iff the specified element is not contained in
the type.public boolean isBaseType(IAnyType aType)
aType
- The type to check. (optional)
true
iff this type is a base type of the specified
type.public boolean isExtension()
true
iff the type was derived by extension from
its base type.public boolean isExtension(IAnyType aType)
aType
- (required).
true
iff this type is an extension of the specified
type.public boolean isRestriction(IAnyType aType)
aType
- (required).
true
iff this type is a restriction of the specified
type.public boolean canBeOverloadedBy(IAnyType aType)
aType
- (required). The overloading type
true
iff the specified type can overload this
type.public boolean isInstanceType(IAnyType aType)
aType
- (required).public IAnyType getInstanceType()
public void setBaseType(IAnyType aType)
aType
- (required).public IAnyType getBaseType()
public boolean isSimple()
true
.
true
iff the type is a simple type.public boolean isComplex()
true
.
true
iff the type is a complex type.public boolean isActive(FinalType aFinalType)
aFinalType
- (required).
true
iff the specified final type is active.public boolean isActive(BlockType aBlockType)
aBlockType
- (required).
true
iff the specified block type is active.public boolean isAbstract()
true
iff the type is abstract.public IAttributesModel getAttributesModel()
public IContentModel getContentModel()
public IConstraints getConstraints()
public void setConstraints(IConstraints aConstraints)
aConstraints
- (required).public IAnyTypeData createData(IDataImpl anImpl) throws XmlException
anImpl
- (required).
XmlException
- Raised iff the data object could not be created.public IAnyTypeData createUncheckedData(IDataImpl anImpl) throws XmlException
anImpl
- (required).
XmlException
public IAnyTypeData createEmptyData(IDataImpl aDataImpl) throws XmlException
In general, the data implementation is not used while creating an empty data object.
The created data object receives its implementation later when its
setImpl
method is called. The data implementation is passed
to this method because in case of a union type the textual content of the
implementation is used to decide which member type to instantiate.
The created data object has assigned its type.
aDataImpl
- (required).
XmlException
public ISimpleType getSimpleContentType()
null
is returned.
public java.lang.Class getSimpleStorageType()
null
.
public void checkConstraints(ICheckContext aContext)
aContext
- (required).public void checkEnclosedConstraints(ICheckContext aContext)
aContext
- (required).public java.lang.String getRoleName()
public IDataCreator getDataCreator()
public void setDataCreator(IDataCreator aCreator)
aCreator
- (optional).public java.util.Map getXPathMethods()
#IXPathMethod
s.public java.util.Collection getDirectSubtypes()
IAnyType
.public java.util.Collection getSubtypes()
IAnyType
.public void addDirectSubtype(IAnyType aType)
aType
- (required).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |