Package hec.data.level
Class JDomSeasonalIntervalImpl
java.lang.Object
java.util.Observable
hec.lang.NamedType
hec.data.AbstractJDomDataObject
hec.data.level.JDomSeasonalIntervalImpl
- All Implemented Interfaces:
ISeasonalInterval
,XmlString
,AsciiSerializable
,FieldAccessor
,Serializable
,Cloneable
,Comparable
,Observer
,Modifiable
- See Also:
-
Field Summary
FieldsFields inherited from class hec.data.AbstractJDomDataObject
DD_MM_MYYYY, DD_MM_MYYYY_HHMM, DD_MM_MYYYY_HHMMZ, MM_MYYYY, UNIT, YYYY
Fields inherited from class hec.lang.NamedType
_description, _ignoreModifiedEvents, _index, _isValid, _modified, _name, defaultDescription, defaultName, DESCRIPTION_CHANGED, NAME_CHANGED, RENAME_EVENT
-
Constructor Summary
ConstructorsConstructorDescriptionJDomSeasonalIntervalImpl
(ISeasonalInterval interval) JDomSeasonalIntervalImpl
(org.jdom.Element element) -
Method Summary
Modifier and TypeMethodDescriptionvoid
buildElement
(org.jdom.Element element) Populates the element with data from this object.void
clear()
clone()
Creates a new object of the same class as this object.boolean
int
getDays()
int
getHours()
int
int
int
int
getType()
int
getYears()
int
hashCode()
boolean
boolean
boolean
void
setDays
(int days) void
setDaysHoursMinutesString
(String daysHoursMinutesString) void
setHours
(int hours) void
setMinutes
(int minutes) void
setMonths
(int months) void
setYearMonthString
(String yearMonthString) void
setYears
(int years) Methods inherited from class hec.data.AbstractJDomDataObject
buildElementOrRemove, camelCaseToLowerUnderbar, getDefaultElementName, getXmlDate, getXmlValue, parseDouble, parseFormattedDouble, parseInt, setXmlDate, setXmlValue, toXmlString
Methods inherited from class hec.lang.NamedType
addModifiableListener, compareTo, fireModifiedStateChanged, getDescription, getDisplayName, getFieldObject, getIgnoreModifiedEvents, getIndex, getName, isModified, isValid, readResolve, removeModifiableListener, rename, set, setDescription, setFieldObject, setIgnoreModifiedEvents, setIndex, setModified, setName, setValid, toString, update, useRecursiveModifiedTest
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface rma.lang.Modifiable
isModified, setModified
Methods inherited from interface hec.data.XmlString
toXmlString
-
Field Details
-
calParsingRegexp
- See Also:
-
calParsingPattern
-
timeParsingRegexp
- See Also:
-
timeParsingPattern
-
-
Constructor Details
-
JDomSeasonalIntervalImpl
public JDomSeasonalIntervalImpl() -
JDomSeasonalIntervalImpl
public JDomSeasonalIntervalImpl(org.jdom.Element element) -
JDomSeasonalIntervalImpl
-
-
Method Details
-
buildElement
public void buildElement(org.jdom.Element element) Description copied from class:AbstractJDomDataObject
Populates the element with data from this object.- Specified by:
buildElement
in classAbstractJDomDataObject
-
hashCode
public int hashCode() -
equals
-
intervalHasCalendarAndTimeParts
public boolean intervalHasCalendarAndTimeParts()- Specified by:
intervalHasCalendarAndTimeParts
in interfaceISeasonalInterval
-
intervalHasCalendarParts
public boolean intervalHasCalendarParts()- Specified by:
intervalHasCalendarParts
in interfaceISeasonalInterval
-
intervalHasTimeParts
public boolean intervalHasTimeParts()- Specified by:
intervalHasTimeParts
in interfaceISeasonalInterval
-
getYears
public int getYears()- Specified by:
getYears
in interfaceISeasonalInterval
-
getMonths
public int getMonths()- Specified by:
getMonths
in interfaceISeasonalInterval
-
getDays
public int getDays()- Specified by:
getDays
in interfaceISeasonalInterval
-
getHours
public int getHours()- Specified by:
getHours
in interfaceISeasonalInterval
-
getMinutes
public int getMinutes()- Specified by:
getMinutes
in interfaceISeasonalInterval
-
setYears
public void setYears(int years) - Specified by:
setYears
in interfaceISeasonalInterval
-
setMonths
public void setMonths(int months) - Specified by:
setMonths
in interfaceISeasonalInterval
-
setDays
public void setDays(int days) - Specified by:
setDays
in interfaceISeasonalInterval
-
setHours
public void setHours(int hours) - Specified by:
setHours
in interfaceISeasonalInterval
-
setMinutes
public void setMinutes(int minutes) - Specified by:
setMinutes
in interfaceISeasonalInterval
-
getTotalMinutes
public int getTotalMinutes()- Specified by:
getTotalMinutes
in interfaceISeasonalInterval
-
getTotalMonths
public int getTotalMonths()- Specified by:
getTotalMonths
in interfaceISeasonalInterval
-
setYearMonthString
- Throws:
DataSetException
-
setDaysHoursMinutesString
- Throws:
DataSetException
-
getType
- Specified by:
getType
in interfaceISeasonalInterval
-
clear
public void clear()- Specified by:
clear
in interfaceISeasonalInterval
-
clone
Description copied from class:NamedType
Creates a new object of the same class as this object.
It then initializes each of the new object's fields by assigning it the same value as the corresponding field in this object. No
constructor is called.- Overrides:
clone
in classNamedType
- Throws:
CloneNotSupportedException
-