|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
de.dfki.mycbr.core.casebase.Attribute
de.dfki.mycbr.core.casebase.SimpleAttribute
de.dfki.mycbr.core.casebase.SymbolAttribute
public class SymbolAttribute
Represents values of symbol attribute descriptions (for example: color could
have green, blue, red, ... as 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 Summary | |
|---|---|
SymbolAttribute(SymbolDesc desc,
java.lang.String v)
Creates new symbol with the specified value for the specified description. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class de.dfki.mycbr.core.casebase.SimpleAttribute |
|---|
getAttributeDesc, getDesc, getExpType, getName, setDesc |
| Methods inherited from class java.util.Observable |
|---|
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SymbolAttribute(SymbolDesc desc,
java.lang.String v)
desc - the description having value as allowed valuev - the value representing this symbol| Method Detail |
|---|
public 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()
TaxonomyNode
getNodes in interface TaxonomyNode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||