public final class AttributeValueEnumeration extends AttributeValue
AttributeValue
class specifically for Enumeration
values
This class extends from the base class AttributeValue
.
The specific form of an AttributeValueEnumeration
in a ReqIF file is as follows:
<ATTRIBUTE-VALUE-ENUMERATION>
<VALUES>
<ENUM-VALUE-REF>EnumValue@IDENTIFIER</ENUM-VALUE-REF>
</VALUES>
...
</ATTRIBUTE-VALUE-ENUMERATION>
Modifier and Type | Method and Description |
---|---|
AttributeDefinitionEnumeration |
getAttributeDefinitionEnumeration()
The
AttributeDefinitionEnumeration associated with this attribute value |
DatatypeDefinitionEnumeration |
getDatatypeDefinitionEnumeration()
The
DatatypeDefinitionEnumeration associated with this attribute value |
java.lang.String |
getDisplayText()
Returns the collection of
EnumValue objects as a single String composed from individual EnumValue
@LONG-NAME attribute values and comma delimited. |
SpecifiedValues |
getEnumValues()
Returns the collection of
EnumValue objects contained in this object |
java.lang.Object |
getValue()
Returns the native value as
Object |
java.lang.String[] |
getValues()
Returns the collection of
EnumValue objects as a String[] array of individual EnumValue
@LONG-NAME attribute values. |
void |
setTheValue(EnumValue... theValues)
Sets the
EnumValue values |
getAttributeDefinition, getAttributeDefinitionLongName, getDatatypeDefinition, getReqIFContent, getReqIFContent, getSpecElementWithAttributes
public SpecifiedValues getEnumValues()
EnumValue
objects contained in this objectEnumValue
objects as a SpecifiedValues
collection object, not nullpublic void setTheValue(EnumValue... theValues) throws InvalidValueException, NotFoundException
EnumValue
valuestheValues
- the new EnumValue
values to set for this objectInvalidValueException
- if any of the supplied theValue parameters is nullNotFoundException
- if the AttributeDefinitionEnumeration
for this AttributeValueEnumeration
was not found in the SpecType
SpecAttributes
collectionpublic AttributeDefinitionEnumeration getAttributeDefinitionEnumeration()
AttributeDefinitionEnumeration
associated with this attribute valueAttributeDefinitionEnumeration
object associated with this object, not nullpublic DatatypeDefinitionEnumeration getDatatypeDefinitionEnumeration()
DatatypeDefinitionEnumeration
associated with this attribute valueDatatypeDefinitionEnumeration
object associated with this object, not nullpublic java.lang.String[] getValues()
EnumValue
objects as a String[]
array of individual EnumValue
@LONG-NAME
attribute values.String[]
array of contained EnumValue
@LONG-NAME
attribute values, not nullpublic java.lang.String getDisplayText()
EnumValue
objects as a single String
composed from individual EnumValue
@LONG-NAME
attribute values and comma delimited.getDisplayText
in class AttributeValue
String
composed from each EnumValue
@LONG-NAME
attribute value and comma delimited, not nullpublic java.lang.Object getValue()
Object
getValue
in class AttributeValue
EnumValue
value collection as Object