public final class AttributeDefinitionDate extends AttributeDefinition<AttributeValueDate>
This class extends from the base class AttributeDefinition.
The specific form of an AttributeDefinitionDate in a ReqIF file is as follows:
<ATTRIBUTE-DEFINITION-DATE 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 |
|---|---|
DatatypeDefinitionDate |
getDatatypeDefinitionDate()
Type specific getter for the associated
DatatypeDefinition subclass. |
AttributeValueDate |
getDefaultValue()
The default value which can be assigned by the exporting tool if one is specified.
|
void |
setDefaultValue(java.util.Date 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 DatatypeDefinitionDate getDatatypeDefinitionDate()
DatatypeDefinition subclass.DatatypeDefinitionDate objectpublic AttributeValueDate getDefaultValue()
If, during import, an AttributeValueDate is not specified for a particular SpecElementWithAttributes,
and corresponding AttributeDefinitionDate 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<AttributeValueDate>AttributeDefinitionDatepublic void setDefaultValue(java.util.Date theValue)
throws NotFoundException
theValue - the Date value to set as the default, not nullNotFoundException - if this AttributeDefinitionDate has been removed from its SpecType