public class SymbolDesc extends SimpleAttDesc implements TaxonomyNode
| Constructor and Description |
|---|
SymbolDesc(Concept owner,
java.lang.String name,
java.util.Set<java.lang.String> allowedValues)
Initializes this with the given name and the allowed values.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
addFct, deleteAllFcts, deleteSimFct, getFct, getSimFcts, renameFctdelete, getAttribute, getExpType, getName, getOwner, isMultiple, setMultiple, setName, setOwner, toString, updatepublic 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
descriptionjava.lang.Exception - if owner already has a description with that namepublic 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 ownerpublic Attribute getAttribute(java.lang.String value)
SymbolAttribute object representing the specified
value.value - the string representing the value that should be returnedpublic SymbolAttribute addSymbol(java.lang.String value)
SymbolAttribute object representing the specified value.value - the string representing the value that should be returnedpublic 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 allowancepublic void removeSymbol(java.lang.String value)
value - the value of the symbol attribute to be removedpublic boolean canOverride(AttributeDesc desc)
AttributeDesccanOverride in class SimpleAttDescdesc - the description which should be overridden by thispublic java.lang.Integer getIndexOf(SimpleAttribute att)
att - the attribute whose index should be returnedpublic boolean fits(Attribute att)
AttributeDescAttributeDesc.fitsSingle(Attribute)fits in class AttributeDescatt - the attribute which should be checked for fitting thispublic boolean fitsSingle(Attribute att)
AttributeDescAttributeDesc.fits(Attribute)fitsSingle in class AttributeDescatt - the attribute which should be checkedpublic boolean renameValue(java.lang.String oldValue,
java.lang.String newValue)
oldValue - the old valuenewValue - the new valuepublic 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()
TaxonomyNodegetNodes in interface TaxonomyNode