|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Description of an element or attribute. Part descriptions can either be attribute/element declarations, references to attribute/element declarations, or wildcard attributes/elements.
Part descriptions are used to create data objects, i.e. instantiate the the appropriate data classes, given a data implementation. The delegate the instantiation to their type and supply fixed/default values.
Method Summary | |
void |
checkValueConstraints(IAnyTypeData aData)
|
IAnyTypeData |
createData(IDataImpl anImpl,
IAnyType anOverloadingType)
Creates a data object. |
IAnyTypeData |
createEmptyData(IDataImpl anImpl,
IAnyType anOverloadingType)
|
IAnyTypeData |
createUncheckedData(IDataImpl anImpl,
IAnyType anOverloadingType)
|
ISimpleData |
getDefault()
Gets the default value. |
ISimpleData |
getFixed()
Gets the fixed value. |
IAnyType |
getType()
Gets the data type. |
boolean |
isActive(BlockType aBlockType)
Checks if the specified block type is active for the declaration. |
boolean |
isActive(FinalType aFinalType)
Checks if the specified final type is active for the declaration. |
Methods inherited from interface org.jbind.xml.core.bridge.IDefaultTextContentProvider |
getDefaultTextContent |
Method Detail |
public IAnyTypeData createData(IDataImpl anImpl, IAnyType anOverloadingType) throws XmlException
If an overloading type is specified then it is checked if it is a valid overloading.
If the data implementation has no textual content and the declaration has a default value then the default value is used. If the declaration has a fixed value then the created data object is checked for the fixed value. In addition the created data object is marked as being fixed.
anImpl
- (required).anOverloadingType
- (optional).
XmlException
- Raised if no (locally) valid data object could have
been created.public IAnyTypeData createUncheckedData(IDataImpl anImpl, IAnyType anOverloadingType) throws XmlException
XmlException
public IAnyTypeData createEmptyData(IDataImpl anImpl, IAnyType anOverloadingType) throws XmlException
XmlException
public IAnyType getType()
public ISimpleData getDefault()
public ISimpleData getFixed()
public boolean isActive(BlockType aBlockType)
aBlockType
- (required).
true
iff the specified block type is active.public boolean isActive(FinalType aFinalType)
true
iff the specified block type is active.public void checkValueConstraints(IAnyTypeData aData) throws XmlException
XmlException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |