public class BooleanDesc extends SymbolDesc
| Constructor and Description |
|---|
BooleanDesc(Concept owner,
java.lang.String name)
Initializes this with the given name.
|
| Modifier and Type | Method and Description |
|---|---|
SymbolFct |
addBooleanFct(java.lang.String name,
boolean active)
Creates a new SymbolFct for the given description.
|
SymbolAttribute |
addSymbol(java.lang.String value)
Does nothing because you cannot add other values than true and false
to a boolean description
|
boolean |
canOverride(AttributeDesc desc)
Checks whether this attribute description
can override the given attribute description
|
Attribute |
getAttribute(java.lang.Object value)
Returns
SymbolAttribute object representing the specified
value. |
SymbolAttribute |
getBooleanAttribute(java.lang.Boolean value)
Returns
BooleanAttribute object representing the specified
value. |
java.lang.Integer |
getIndexOf(SimpleAttribute att) |
boolean |
isAllowedValue(java.lang.String v)
Tells you whether the specified string is an allowed value for this
or not.
|
void |
removeSymbol(java.lang.String value)
Does nothing because you cannot delete a boolean value
|
boolean |
renameValue(java.lang.String oldValue,
java.lang.String newValue)
Does nothing because you cannot rename a boolean value.
|
addOrderedSymbolFct, addSymbolFct, addTaxonomyFct, fits, fitsSingle, getAllowedValues, getAttribute, getNodes, getSymbolAttributesaddFct, deleteAllFcts, deleteSimFct, getFct, getSimFcts, renameFctdelete, getExpType, getName, getOwner, isMultiple, setMultiple, setName, setOwner, toString, updatepublic BooleanDesc(Concept owner, java.lang.String name) throws java.lang.Exception
java.lang.Exceptionpublic SymbolAttribute getBooleanAttribute(java.lang.Boolean value)
BooleanAttribute object representing the specified
value.value - the boolean representing the value that should be returnedpublic SymbolFct addBooleanFct(java.lang.String name, boolean active)
name - the name of the description for which a new function should be createdpublic boolean canOverride(AttributeDesc desc)
AttributeDesccanOverride in class SymbolDescdesc - the description which should be overridden by thispublic boolean isAllowedValue(java.lang.String v)
SymbolDescisAllowedValue in class SymbolDescv - the string which should be checked for allowancepublic Attribute getAttribute(java.lang.Object value)
SymbolAttribute object representing the specified
value.getAttribute in class AttributeDescvalue - the string representing the value that should be returnedpublic final java.lang.Integer getIndexOf(SimpleAttribute att)
getIndexOf in class SymbolDescatt - the attribute whose index should be returnedpublic void removeSymbol(java.lang.String value)
removeSymbol in class SymbolDescvalue - the value of the symbol attribute to be removedpublic final boolean renameValue(java.lang.String oldValue,
java.lang.String newValue)
renameValue in class SymbolDescoldValue - the old valuenewValue - the new valuepublic final SymbolAttribute addSymbol(java.lang.String value)
addSymbol in class SymbolDescvalue - the value to be added to this description