public final class AttributeDefinitionReal extends AttributeDefinition<AttributeValueReal>
This class extends from the base class AttributeDefinition.
The specific form of an AttributeDefinitionReal in a ReqIF file is as follows:
<ATTRIBUTE-DEFINITION-REAL 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 |
|---|---|
DatatypeDefinitionReal |
getDatatypeDefinitionReal()
Type specific getter for the associated
DatatypeDefinition subclass. |
AttributeValueReal |
getDefaultValue()
The default value which can be assigned by the exporting tool if one is specified.
|
void |
setDefaultValue(double 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 DatatypeDefinitionReal getDatatypeDefinitionReal()
DatatypeDefinition subclass.DatatypeDefinitionReal objectpublic AttributeValueReal getDefaultValue()
If, during import, an AttributeValueReal is not specified for a particular SpecElementWithAttributes,
and corresponding AttributeDefinitionReal 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<AttributeValueReal>AttributeDefinitionRealpublic void setDefaultValue(double theValue)
throws NotFoundException,
InvalidValueException
When a ReqIF is saved, the value specified as the default value, will be truncated to the number of places
as defined by the ACCURACY attribute.
theValue - the double value to set as the defaultInvalidValueException - if the specified value is outside the permitted range as defined in the associated
DatatypeDefinitionReal object @MIN and @MAX attribute valuesNotFoundException - if this AttributeDefinitionReal has been removed from its SpecType