public final class AttributeValueReal extends AttributeValue
AttributeValue
class specifically for double
values
This class extends from the base class AttributeValue
.
The specific form of an AttributeValueReal
in a ReqIF file is as follows:
<ATTRIBUTE-VALUE-REAL THE-VALUE="theValue">
The following is the list of XML attributes:
@THE-VALUE
required xsd:double
the double
attribute valueModifier and Type | Method and Description |
---|---|
AttributeDefinitionReal |
getAttributeDefinitionReal()
The
AttributeDefinitionReal associated with this attribute value |
DatatypeDefinitionReal |
getDatatypeDefinitionReal()
The
DatatypeDefinitionReal associated with this attribute value |
java.lang.String |
getDisplayText()
Returns the
String representation of this double value |
double |
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(double theValue)
Sets the
double value |
getAttributeDefinition, getAttributeDefinitionLongName, getDatatypeDefinition, getReqIFContent, getReqIFContent, getSpecElementWithAttributes
public double getTheValue()
double
value of this attributepublic void setTheValue(double theValue) throws NotFoundException
double
valuetheValue
- the new double
value to set for this objectNotFoundException
- if the AttributeDefinitionReal
for this AttributeValueReal
was not found in the SpecType
SpecAttributes
collectionpublic AttributeDefinitionReal getAttributeDefinitionReal()
AttributeDefinitionReal
associated with this attribute valueAttributeDefinitionReal
object associated with this objectpublic DatatypeDefinitionReal getDatatypeDefinitionReal()
DatatypeDefinitionReal
associated with this attribute valueDatatypeDefinitionReal
object associated with this objectpublic java.lang.String getDisplayText()
String
representation of this double
valuegetDisplayText
in class AttributeValue
String
representation of this double
valuepublic java.lang.Object getValue()
Object
getValue
in class AttributeValue
double
value as Object
public java.lang.String getTheValueText()