public class SymbolAttribute extends SimpleAttribute implements TaxonomyNode
SymbolAttribute objects). A symbol
attribute depends on a description (so if you have two attribute descriptions
for color there would be two SymbolAttribute objects for green).
However, if green (for a fixed description) appears in several cases, the
corresponding SymbolAttribute object is referenced.
SymbolAttribut objects are maintained by
SymbolRange| Constructor and Description |
|---|
SymbolAttribute(SymbolDesc desc,
java.lang.String v)
Creates new symbol with the specified value for the specified
description.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<TaxonomyNode> |
getNodes()
Returns a list of nodes allowed for the taxonomy this is contained in.
|
java.lang.String |
getValue()
Returns the value of this symbol.
|
java.lang.String |
getValueAsString()
Returns a string representation of this attribute.
|
void |
setValue(java.lang.String v)
Updates the value of this symbol.
|
java.lang.String |
toString()
Returns string representation of this symbol.
|
getAttributeDesc, getDesc, getExpType, getName, setDescpublic SymbolAttribute(SymbolDesc desc, java.lang.String v)
desc - the description having value as allowed valuev - the value representing this symbolpublic final void setValue(java.lang.String v)
v - the value to be used for this symbolpublic final java.lang.String getValue()
public final java.lang.String toString()
getValue()toString in class java.lang.Objectpublic final java.lang.String getValueAsString()
getValueAsString in class Attributepublic java.util.List<TaxonomyNode> getNodes()
TaxonomyNodegetNodes in interface TaxonomyNode