public final class AttributeValueDate extends AttributeValue
AttributeValue
class specifically for Date
values
This class extends from the base class AttributeValue
.
The specific form of an AttributeValueDate
in a ReqIF file is as follows:
<ATTRIBUTE-VALUE-DATE THE-VALUE="theValue">
The following is the list of XML attributes:
@THE-VALUE
required xsd:dateTime
the Date
attribute valueModifier and Type | Method and Description |
---|---|
AttributeDefinitionDate |
getAttributeDefinitionDate()
The
AttributeDefinitionDate associated with this attribute value |
DatatypeDefinitionDate |
getDatatypeDefinitionDate()
The
DatatypeDefinitionDate associated with this attribute value |
java.lang.String |
getDisplayText()
Returns the string representation of this
Date value |
java.util.Date |
getTheValue() |
java.lang.String |
getTheValueText()
Gets the String representation of this attribute value as stored in the ReqIF XML file.
|
java.lang.Object |
getValue()
Returns the native value as
Object |
void |
setTheValue(java.util.Date theValue)
Sets the
Date value |
getAttributeDefinition, getAttributeDefinitionLongName, getDatatypeDefinition, getReqIFContent, getReqIFContent, getSpecElementWithAttributes
public java.util.Date getTheValue()
Date
value of this attribute, not nullpublic void setTheValue(java.util.Date theValue) throws NotFoundException
Date
valuetheValue
- the new Date
value to set for this object, not nullNotFoundException
- if the AttributeDefinitionDate
for this AttributeValueDate
was not found in the SpecType
SpecAttributes
collectionpublic AttributeDefinitionDate getAttributeDefinitionDate()
AttributeDefinitionDate
associated with this attribute valueAttributeDefinitionDate
object associated with this object, not nullpublic DatatypeDefinitionDate getDatatypeDefinitionDate()
DatatypeDefinitionDate
associated with this attribute valueDatatypeDefinitionDate
object associated with this object, not nullpublic java.lang.String getDisplayText()
Date
valuegetDisplayText
in class AttributeValue
String
representation of this Date
valuepublic java.lang.Object getValue()
Object
getValue
in class AttributeValue
Date
value as Object
public java.lang.String getTheValueText()