|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.dfki.mycbr.core.casebase.Range
de.dfki.mycbr.core.casebase.ConceptRange
public final class ConceptRange
Holds ConceptAttribute objects for a given ConceptDesc object.
| Constructor Summary | |
|---|---|
ConceptRange(Project p,
Concept c)
Initializes map for special attributes. |
|
| Method Summary | |
|---|---|
boolean |
add(Instance i)
|
void |
clear()
|
Instance |
contains(java.lang.String name)
Returns the ConceptAttribute associated with the given String. |
Attribute |
getAttribute(java.lang.Object obj)
Gets the attribute associated with the specified Object obj. |
Concept |
getConcept()
|
Instance |
getInstance(java.lang.String name)
Returns the ConceptAttribute associated with the given String. |
java.util.Collection<Instance> |
getInstances()
Gets the current c attributes maintained by this range. |
Attribute |
parseValue(java.lang.String s)
|
void |
remove(java.lang.String name)
|
void |
renameInstance(java.lang.String name,
java.lang.String name2)
|
void |
setAllInstancesMultiple(AttributeDesc d)
Called when changing the description from having single to multiple values. |
void |
setAllInstancesSingle(AttributeDesc d)
Called when changing the description from having multiple to single values. |
void |
update(java.util.Observable o,
java.lang.Object arg)
|
| Methods inherited from class de.dfki.mycbr.core.casebase.Range |
|---|
getProject, setProject |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConceptRange(Project p,
Concept c)
p - the project this range belongs toc - the concept for values maintained by this range| Method Detail |
|---|
public Instance getInstance(java.lang.String name)
throws java.lang.Exception
name - the identifier for which the corresponding ConceptAttribute
should be returned
java.lang.Exception - if name is emptypublic boolean add(Instance i)
i - the instance to be added to this range
public Instance contains(java.lang.String name)
name - the name of the instance to be returned
public java.util.Collection<Instance> getInstances()
public Attribute getAttribute(java.lang.Object obj)
Object obj.
obj is expected to be of type String. Returns result of
getInstance(String) if obj is of type String,
result of Project.getSpecialAttribute(String) if obj is of type
SpecialAttribute, else returns null. Is needed for
MultipleRange.
getAttribute in class Rangeobj - representing String or SpecialAttribute
public Concept getConcept()
public void update(java.util.Observable o,
java.lang.Object arg)
public void renameInstance(java.lang.String name,
java.lang.String name2)
name - the old name of the instancename2 - new name of the instance
public Attribute parseValue(java.lang.String s)
throws java.lang.Exception
s - the string which should be used for parsing
java.text.ParseException - if string does not fit description
java.lang.Exceptionpublic void setAllInstancesSingle(AttributeDesc d)
public void setAllInstancesMultiple(AttributeDesc d)
public void clear()
public void remove(java.lang.String name)
name -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||