public abstract class Range
extends java.lang.Object
implements java.util.Observer
| Modifier and Type | Method and Description |
|---|---|
abstract Attribute |
getAttribute(java.lang.Object obj)
Gets the attribute associated with the specified
Object obj. |
Project |
getProject() |
void |
setProject(Project p) |
public Range(Project p)
p - the project this range belongs to.public abstract Attribute getAttribute(java.lang.Object obj) throws java.text.ParseException
Object obj.
obj is expected to be of a certain type (dependent on AttributeDesc
object of
class implementing this interface) or SpecialAttribute (represented by a
string). Should return result of Project.getSpecialAttribute(String) if obj
is a special attribute, a corresponding attribute for the description if obj
is of the expected type, else null.obj - the object for which the corresponding attribute should be
returnedjava.text.ParseException - if obj does not fit descriptionpublic final void setProject(Project p)
p - the project to setpublic final Project getProject()