public abstract class AttributeValue
extends java.lang.Object
Instances of this class will exist either as default values inside a AttributeDefinition objects or inside
SpecElementWithAttributes oebjcts.
AttributeValueBoolean representing the ATTRIBUTE-VALUE-BOOLEAN XML elementAttributeValueDate representing the ATTRIBUTE-VALUE-DATE XML elementAttributeValueEnumeration representing the ATTRIBUTE-VALUE-ENUMERATION XML elementAttributeValueInteger representing the ATTRIBUTE-VALUE-INTEGER XML elementAttributeValueReal representing the ATTRIBUTE-VALUE-REAL XML elementAttributeValueString representing the ATTRIBUTE-VALUE-STRING XML elementAttributeValueXHTML representing the ATTRIBUTE-VALUE-XHTML XML elementThe general form of an AttributeValue for all attributes except AttributeValueEnumeration and AttributeValueXHTML in a ReqIF file is as follows:
<ATTRIBUTE-VALUE-XXXX THE-VALUE="theValue">
The following is the common list of XML attributes:
@THE-VALUE required xsd:string the attribute value in a format compatible with the attribute type| Modifier and Type | Method and Description |
|---|---|
AttributeDefinition<?> |
getAttributeDefinition()
Returns the owning
AttributeDefinition object where this AttributeValue exists as the default value. |
java.lang.String |
getAttributeDefinitionLongName()
Returns the
@LONG-NAME attribute value of the associated AttributeDefinition. |
DatatypeDefinition |
getDatatypeDefinition()
Returns the associated
DatatypeDefinition object. |
abstract java.lang.String |
getDisplayText() |
ReqIFContent |
getReqIFContent() |
protected static ReqIFContent |
getReqIFContent(AttributeDefinition<?> attributeDefinition,
SpecElementWithAttributes<?> specElementWithAttributes) |
SpecElementWithAttributes<?> |
getSpecElementWithAttributes()
Returns the owning
SpecElementWithAttributes object where this AttributeValue exists inside a
SpecElementWithAttributes object. |
abstract java.lang.Object |
getValue() |
public ReqIFContent getReqIFContent()
protected static ReqIFContent getReqIFContent(AttributeDefinition<?> attributeDefinition, SpecElementWithAttributes<?> specElementWithAttributes)
public SpecElementWithAttributes<?> getSpecElementWithAttributes()
SpecElementWithAttributes object where this AttributeValue exists inside a
SpecElementWithAttributes object.SpecElementWithAttributes object or null if the owner is a AttributeDefinition objectpublic AttributeDefinition<?> getAttributeDefinition()
AttributeDefinition object where this AttributeValue exists as the default value.AttributeDefinition object or null if the owner is a SpecElementWithAttributes objectpublic abstract java.lang.String getDisplayText()
public abstract java.lang.Object getValue()
public DatatypeDefinition getDatatypeDefinition()
DatatypeDefinition object.DatatypeDefinition object, not nullpublic java.lang.String getAttributeDefinitionLongName()
@LONG-NAME attribute value of the associated AttributeDefinition.String value of the @LONG-NAME attribute of the associated AttributeDefinition, not null