public final class StringRange extends Range
Range) does not have a list of
the current string values, since StringAttribute objects will not be
referenced.| Constructor and Description |
|---|
StringRange(Project prj,
StringDesc d) |
| Modifier and Type | Method and Description |
|---|---|
Attribute |
getAttribute(java.lang.Object obj)
Gets the attribute associated with the specified
Object obj. |
StringAttribute |
getStringValue(java.lang.String s)
Creates a new StringAttribute associated with the given String.
|
Attribute |
parseValue(java.lang.String string) |
void |
update(java.util.Observable arg0,
java.lang.Object arg1) |
getProject, setProjectpublic StringRange(Project prj, StringDesc d)
prj - the project this range belongs tod - the symbol description for this attributepublic StringAttribute getStringValue(java.lang.String s)
s - the value for which the corresponding StringAttribute should
be returnedpublic Attribute getAttribute(java.lang.Object obj)
Object obj.
obj is expected to be of type String. Returns result of
getStringValue(String) if obj is of type String,
result of Project.getSpecialAttribute(String) if obj is of type
SpecialAttribute, else returns null. Is needed for
MultipleRange.getAttribute in class Rangeobj - representing String or SpecialAttributepublic void update(java.util.Observable arg0,
java.lang.Object arg1)
public Attribute parseValue(java.lang.String string)
string - the string which should be used for parsing