public final class AttributeDefinitionBoolean extends AttributeDefinition<AttributeValueBoolean>
This class extends from the base class AttributeDefinition.
The specific form of an AttributeDefinitionBoolean in a ReqIF file is as follows:
<ATTRIBUTE-DEFINITION-BOOLEAN DESC="desc" IS-EDITABLE="isEditable" IDENTIFIER="identifier" LAST-CHANGE="lastChange" LONG-NAME="longName">
The following is the list of XML attributes:
@DESC optional xsd:string description@IS-EDITABLE optional xsd:boolean, if not specified, false is assumed@IDENTIFIER required xsd:ID@LAST-CHANGE required xsd:dateTime@LONG-NAME required xsd:string (Note: currently the reqif.xsd does not enforce this)| Modifier and Type | Method and Description |
|---|---|
DatatypeDefinitionBoolean |
getDatatypeDefinitionBoolean()
Type specific getter for the associated
DatatypeDefinition subclass. |
AttributeValueBoolean |
getDefaultValue()
The default value which can be assigned by the exporting tool if one is specified.
|
void |
setDefaultValue(boolean theValue)
Sets the default value for this object.
|
getDatatypeDefinition, getSpecType, hasDefaultValue, isEditable, removeDefaultValue, setIsEditable, toStringequals, getAlternativeID, getChildren, getDesc, getIdentifier, getLastChange, getLastChangeText, getLongName, getPathToRoot, getReqIFContent, hashCode, isUsed, isValidIdentifier, setAlternativeID, setDesc, setLastChange, setLongName, whereUsedpublic DatatypeDefinitionBoolean getDatatypeDefinitionBoolean()
DatatypeDefinition subclass.DatatypeDefinitionBoolean object, not nullpublic AttributeValueBoolean getDefaultValue()
If, during import, an AttributeValueBoolean is not specified for a particular SpecElementWithAttributes,
and corresponding AttributeDefinitionBoolean on the associated SpecType, then the default value if one
exists will be the substitute for the missing value otherwise the value null is assumed meaning 'unset'.
getDefaultValue in class AttributeDefinition<AttributeValueBoolean>AttributeDefinitionBooleanpublic void setDefaultValue(boolean theValue)
throws NotFoundException
AttributeDefinition.removeDefaultValue() to unset the default.theValue - the boolean value to set as the defaultNotFoundException - if this AttributeDefinitionBoolean has been removed from its SpecType