public final class AttributeValueBoolean extends AttributeValue
AttributeValue class specifically for boolean values
This class extends from the base class AttributeValue.
The specific form of an AttributeValueBoolean in a ReqIF file is as follows:
<ATTRIBUTE-VALUE-BOOLEAN THE-VALUE="theValue">
The following is the list of XML attributes:
@THE-VALUE required xsd:boolean the boolean attribute value| Modifier and Type | Method and Description |
|---|---|
AttributeDefinitionBoolean |
getAttributeDefinitionBoolean()
The
AttributeDefinitionBoolean associated with this attribute value |
DatatypeDefinitionBoolean |
getDatatypeDefinitionBoolean()
The
DatatypeDefinitionBoolean associated with this attribute value |
java.lang.String |
getDisplayText()
Returns
true or false as appropriate |
boolean |
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(boolean theValue)
Sets the
boolean value |
getAttributeDefinition, getAttributeDefinitionLongName, getDatatypeDefinition, getReqIFContent, getReqIFContent, getSpecElementWithAttributespublic boolean getTheValue()
boolean value of this attributepublic void setTheValue(boolean theValue)
throws NotFoundException
boolean valuetheValue - the new boolean value to set for this objectNotFoundException - if the AttributeDefinitionBoolean for this AttributeValueBoolean was not found in the SpecType SpecAttributes collectionpublic AttributeDefinitionBoolean getAttributeDefinitionBoolean()
AttributeDefinitionBoolean associated with this attribute valueAttributeDefinitionBoolean object associated with this object, not nullpublic DatatypeDefinitionBoolean getDatatypeDefinitionBoolean()
DatatypeDefinitionBoolean associated with this attribute valueDatatypeDefinitionBoolean object associated with this object, not nullpublic java.lang.String getDisplayText()
true or false as appropriategetDisplayText in class AttributeValueString representation of this boolean valuepublic java.lang.Object getValue()
ObjectgetValue in class AttributeValueboolean value as Objectpublic java.lang.String getTheValueText()