public final class AttributeDefinitionInteger extends AttributeDefinition<AttributeValueInteger>
This class extends from the base class AttributeDefinition
.
The specific form of an AttributeDefinitionInteger
in a ReqIF file is as follows:
<ATTRIBUTE-DEFINITION-INTEGER 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 |
---|---|
DatatypeDefinitionInteger |
getDatatypeDefinitionInteger()
Type specific getter for the associated
DatatypeDefinition subclass. |
AttributeValueInteger |
getDefaultValue()
The default value which can be assigned by the exporting tool if one is specified.
|
void |
setDefaultValue(long theValue)
Sets the default value for this object.
|
getDatatypeDefinition, getSpecType, hasDefaultValue, isEditable, removeDefaultValue, setIsEditable, toString
equals, getAlternativeID, getChildren, getDesc, getIdentifier, getLastChange, getLastChangeText, getLongName, getPathToRoot, getReqIFContent, hashCode, isUsed, isValidIdentifier, setAlternativeID, setDesc, setLastChange, setLongName, whereUsed
public DatatypeDefinitionInteger getDatatypeDefinitionInteger()
DatatypeDefinition
subclass.DatatypeDefinitionInteger
object, not nullpublic AttributeValueInteger getDefaultValue()
If, during import, an AttributeValueInteger
is not specified for a particular SpecElementWithAttributes
,
and corresponding AttributeDefinitionInteger
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<AttributeValueInteger>
AttributeDefinitionInteger
public void setDefaultValue(long theValue) throws InvalidValueException, NotFoundException
theValue
- the long
value to set as the defaultInvalidValueException
- if the specified value it outside the permitted range as defined in the associated
DatatypeDefinitionInteger
object @MIN
and @MAX
attribute valuesNotFoundException
- if this AttributeDefinitionInteger
has been removed from its SpecType