public class SpecialDesc extends SymbolDesc
| Constructor and Description |
|---|
SpecialDesc(Project p,
java.util.HashSet<java.lang.String> allowedValues)
For initializing special value desc.
|
| Modifier and Type | Method and Description |
|---|---|
SpecialFct |
addSpecialFct(java.lang.String name,
boolean active)
Creates a new SymbolFct for the given description.
|
Attribute |
getAttribute(java.lang.String value)
Returns
SymbolAttribute object representing the specified
value. |
static SpecialDesc |
getDefault() |
java.lang.Integer |
getIndexOf(SpecialAttribute att) |
void |
removeSymbol(java.lang.String value)
Removes the given string from the list of allowed symbols.
|
addOrderedSymbolFct, addSymbol, addSymbolFct, addTaxonomyFct, canOverride, fits, fitsSingle, getAllowedValues, getIndexOf, getNodes, getSymbolAttributes, isAllowedValue, renameValueaddFct, deleteAllFcts, deleteSimFct, getFct, getSimFcts, renameFctdelete, getAttribute, getExpType, getName, getOwner, isMultiple, setMultiple, setName, setOwner, toString, updatepublic SpecialDesc(Project p, java.util.HashSet<java.lang.String> allowedValues) throws java.lang.Exception
p - the project this description belongs toallowedValues - the values which can be used for attributes of this
descriptionjava.lang.Exception - if something goes wrong during creation of special value
functionpublic static SpecialDesc getDefault()
public final Attribute getAttribute(java.lang.String value)
SymbolAttribute object representing the specified
value.getAttribute in class SymbolDescvalue - the string representing the value that should be returnedpublic final java.lang.Integer getIndexOf(SpecialAttribute att)
att - the attribute whose index should be returnedpublic final void removeSymbol(java.lang.String value)
removeSymbol in class SymbolDescvalue - the value which should be removed as allowed value of thispublic final SpecialFct addSpecialFct(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.