|
||||||||||
| 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.model.AttributeDesc
de.dfki.mycbr.core.model.SimpleAttDesc
de.dfki.mycbr.core.model.SymbolDesc
public class SymbolDesc
Description for symbol attributes. Gives restrictions to the allowed values for this attribute.
| Constructor Summary | |
|---|---|
SymbolDesc(Concept owner,
java.lang.String name,
java.util.Set<java.lang.String> allowedValues)
Initializes this with the given name and the allowed values. |
|
| Method Summary | |
|---|---|
OrderedSymbolFct |
addOrderedSymbolFct(java.lang.String name,
boolean active)
Creates a new OrderedSymbolFct for the given description. |
SymbolAttribute |
addSymbol(java.lang.String value)
Adds value to the list of allowed symbols of this description. |
SymbolFct |
addSymbolFct(java.lang.String name,
boolean active)
Creates a new SymbolFct for the given description. |
TaxonomyFct |
addTaxonomyFct(java.lang.String name,
boolean active)
Creates a new TaxonomyFct for the given description. |
boolean |
canOverride(AttributeDesc desc)
Checks whether this attribute description can override the given attribute description |
boolean |
fits(Attribute att)
Checks whether the given attribute fits this. |
boolean |
fitsSingle(Attribute att)
Checks whether a single attribute fits the constraints for this. |
java.util.Set<java.lang.String> |
getAllowedValues()
Gets the allowed values. |
Attribute |
getAttribute(java.lang.String value)
Returns SymbolAttribute object representing the specified
value. |
java.lang.Integer |
getIndexOf(SimpleAttribute att)
|
java.util.List<TaxonomyNode> |
getNodes()
Returns a list of nodes allowed for the taxonomy this is contained in. |
java.util.Collection<SymbolAttribute> |
getSymbolAttributes()
Returns Collection of symbol attributes representing the allowed symbols for the given description. |
boolean |
isAllowedValue(java.lang.String value)
Tells you whether the specified string is an allowed value for this or not. |
void |
removeSymbol(java.lang.String value)
Removes the given string from the list of allowed symbols. |
boolean |
renameValue(java.lang.String oldValue,
java.lang.String newValue)
Changes the symbol attribute's value associated with oldValue to newValue. |
| Methods inherited from class de.dfki.mycbr.core.model.SimpleAttDesc |
|---|
addFct, deleteAllFcts, deleteSimFct, getFct, getSimFcts, renameFct |
| Methods inherited from class de.dfki.mycbr.core.model.AttributeDesc |
|---|
delete, getAttribute, getExpType, getName, getOwner, isMultiple, setMultiple, setName, setOwner, toString, update |
| 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 SymbolDesc(Concept owner,
java.lang.String name,
java.util.Set<java.lang.String> allowedValues)
throws java.lang.Exception
owner - the owner of this descriptionname - the name to be used for this description.allowedValues - the values which can be used for attributes of this
description
java.lang.Exception - if owner already has a description with that name| Method Detail |
|---|
public final OrderedSymbolFct addOrderedSymbolFct(java.lang.String name,
boolean active)
name - the name of the new function.active - the new function will be used in all amalgamation functions
known for the owner
public Attribute getAttribute(java.lang.String value)
SymbolAttribute object representing the specified
value.
value - the string representing the value that should be returned
public SymbolAttribute addSymbol(java.lang.String value)
SymbolAttribute object representing the specified value.
value - the string representing the value that should be returned
public final java.util.Collection<SymbolAttribute> getSymbolAttributes()
public final java.util.Set<java.lang.String> getAllowedValues()
public boolean isAllowedValue(java.lang.String value)
value - the string which should be checked for allowance
public void removeSymbol(java.lang.String value)
value - the value of the symbol attribute to be removedpublic boolean canOverride(AttributeDesc desc)
AttributeDesc
canOverride in class SimpleAttDescdesc - the description which should be overridden by this
public java.lang.Integer getIndexOf(SimpleAttribute att)
att - the attribute whose index should be returned
public boolean fits(Attribute att)
AttributeDescAttributeDesc.fitsSingle(Attribute)
fits in class AttributeDescatt - the attribute which should be checked for fitting this
public boolean fitsSingle(Attribute att)
AttributeDescAttributeDesc.fits(Attribute)
fitsSingle in class AttributeDescatt - the attribute which should be checked
public boolean renameValue(java.lang.String oldValue,
java.lang.String newValue)
oldValue - the old valuenewValue - the new value
public final SymbolFct addSymbolFct(java.lang.String name,
boolean active)
name - the name of the new functionactive - if true, the new function will be used in all amalgamation
functions known for the owner of this.
public final TaxonomyFct addTaxonomyFct(java.lang.String name,
boolean active)
name - the name of the new functionactive - if true, the new function will be used in all amalgamation
functions known for the owner of this.
public 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 | |||||||||