|
||||||||||
| 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.MultipleAttribute<Type>
Type - type of attribute description describing single values
contained in this collectionpublic final class MultipleAttribute<Type extends AttributeDesc>
Represents sets of values in query/case. The class Type should be a class which extends. AttributeDesc class and corresponds to the description of the values contained in the mentioned set. This class is a wrapper for the original values which are maintained by a class implementing Range.
| Constructor Summary | |
|---|---|
MultipleAttribute(Type desc,
java.util.LinkedList<Attribute> l1)
Initializes this with empty value. |
|
| Method Summary | |
|---|---|
void |
addValue(Attribute value)
Adds the given attribute to the list of values for this attribute. |
Type |
getAttributeDesc()
|
java.lang.String |
getValueAsString()
Returns a string representation of this attribute's value. |
java.util.List<Attribute> |
getValues()
Gets the list of values for this attribute. |
void |
removeValue(Attribute value)
Adds the given attribute to the list of values for this attribute. |
java.lang.String |
toString()
Returns the string representation of this attribute as the concatenation of the string representations of the single values. |
| 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 MultipleAttribute(Type desc,
java.util.LinkedList<Attribute> l1)
desc - the description of this attribute.l1 - list of values for this collection| Method Detail |
|---|
public java.util.List<Attribute> getValues()
public void addValue(Attribute value)
value - the attribute to be addedpublic void removeValue(Attribute value)
value - the attribute to be addedpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getValueAsString()
Attribute
getValueAsString in class Attributepublic Type getAttributeDesc()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||