public final class DateRange extends Range
| Constructor and Description |
|---|
DateRange(Project p,
DateDesc d)
Initializes internal data structures.
|
| Modifier and Type | Method and Description |
|---|---|
Attribute |
getAttribute(java.lang.Object obj)
Gets the attribute associated with the specified
Object obj. |
DateAttribute |
getDateValue(java.util.Date date)
Returns the DateAttribute associated with the given date.
|
Attribute |
parseValue(java.lang.String string) |
void |
update(java.util.Observable ob,
java.lang.Object o) |
getProject, setProjectpublic DateAttribute getDateValue(java.util.Date date)
date - the value for which the corresponding DateAttribute should be
returnedpublic Attribute getAttribute(java.lang.Object obj) throws java.text.ParseException
Object obj.
obj is expected to be of type Date or String.
Returns result of getDateValue(Date) if obj is of type
Date, result of Project.getSpecialAttribute(String) if obj is
of type SpecialAttribute, else returns null. Is needed for
MultipleRange.getAttribute in class Rangeobj - representing Date or SpecialAttributejava.text.ParseException - if obj does not fit the descriptionpublic Attribute parseValue(java.lang.String string) throws java.text.ParseException
string - the string to be parsedjava.text.ParseException - if string does not fit descriptionpublic void update(java.util.Observable ob,
java.lang.Object o)