public final class SpecialRange extends SymbolRange
| Constructor and Description |
|---|
SpecialRange(Project prj,
SymbolDesc desc,
java.util.Collection<java.lang.String> allowedValues) |
| Modifier and Type | Method and Description |
|---|---|
SymbolAttribute |
addSymbolValue(java.lang.String value) |
int |
compare(SpecialAttribute att1,
SpecialAttribute att2)
Compares the given attributes according to a linear order.
|
Attribute |
getAttribute(java.lang.Object obj)
Gets the attribute associated with the specified
Object obj. |
java.lang.Integer |
getIndexOf(SpecialAttribute att)
Returns the index of the given attribute.
|
getHighestIndex, getIndexes, getIndexOf, getSymbols, getSymbolValue, initIndexes, removeAttribute, renameSymbol, setHighestIndex, setIndexes, updategetProject, setProjectpublic SpecialRange(Project prj, SymbolDesc desc, java.util.Collection<java.lang.String> allowedValues)
prj - the project this range belongs todesc - the description this range belongs toallowedValues - the allowed values for this rangepublic int compare(SpecialAttribute att1, SpecialAttribute att2)
att1 - the first attribute to be compared with the secondatt2 - the second attributepublic java.lang.Integer getIndexOf(SpecialAttribute att)
att - the attribute whose index should be returnedpublic final SymbolAttribute addSymbolValue(java.lang.String value)
addSymbolValue in class SymbolRangevalue - the value of the new symbol attributepublic final Attribute getAttribute(java.lang.Object obj)
Object obj.
obj is expected to be of type String. Returns result of
SymbolRange.getSymbolValue(String) if obj is of type String,
else returns null. Is needed for MultipleRange.getAttribute in class SymbolRangeobj - representing String or SpecialValue