Package hec.data.level
Class JDomLocationLevelImpl
java.lang.Object
java.util.Observable
hec.lang.NamedType
hec.data.AbstractJDomDataObject
hec.data.level.JDomLocationLevelImpl
- All Implemented Interfaces:
ILocationLevel,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, YYYYFields inherited from class hec.lang.NamedType
_description, _ignoreModifiedEvents, _index, _isValid, _modified, _name, defaultDescription, defaultName, DESCRIPTION_CHANGED, NAME_CHANGED, RENAME_EVENTFields inherited from interface hec.data.level.ILocationLevel
COMMENT, DATE, ELEMENT, LEVEL, LEVEL_UNITS_ID, LOCATION, SEASONAL_END_DATE, SEASONAL_START_DATE, SEASONAL_TIME_SERIES_ID, SEASONAL_VALUES, SPECIFIED_LEVEL -
Constructor Summary
ConstructorsConstructorDescriptionJDomLocationLevelImpl(ILocationLevel locationLevel) JDomLocationLevelImpl(LocationTemplate locationRef, ISpecifiedLevel specifiedLevel, IParameterTypedValue value, IAttributeParameterTypedValue attribute, Date date, String levelUnits) JDomLocationLevelImpl(String officeId, String locLevelId, Date effectiveDate, String levelUnits, String attributeId, String attributeValue, String attributeUnits) JDomLocationLevelImpl(org.jdom.Element element) -
Method Summary
Modifier and TypeMethodDescriptionvoidbuildElement(org.jdom.Element element) Populates the element with data from this object.voidbooleangetDate()called when data is stored to the databaseintintReturns assigned seasonal ts end date.Returns assigned seasonal ts start date.doublegetUnits()inthashCode()booleanbooleanbooleanvoidsetAttributeComment(String attributeComment) voidsetAttributeDurationId(String attributeDurationId) voidsetAttributeParameterId(String attributeParameterId) voidsetAttributeParameterTypeId(String attributeParameterTypeId) voidsetAttributeUnitsId(String attributeUnitsId) voidsetAttributeValue(BigDecimal attributeValue) voidvoidvoidsetDuration(Duration duration) voidsetDurationId(String durationId) voidsetIndicators(Object indicators) voidsetInterpolateSeasonal(Boolean interpolate) voidsetInterpolateString(String interpolate) voidsetIntervalMinutes(int intervalMinutes) voidsetIntervalMonths(int intervalMonths) voidsetIntervalOrigin(Date intervalOrigin) voidsetLevelComment(String levelComment) voidsetLevelDate(Date levelDate) voidsetLevelUnitsId(String levelUnitsId) voidsetLocationId(String locationId) voidsetLocationLevelRef(ILocationLevelRef iLocationLevelRef) voidsetLocationRef(LocationTemplate locRef) voidsetOfficeId(String officeId) voidsetParameter(Parameter parameter) voidsetParameterId(String parameterId) voidsetParameterType(ParameterType parameterType) voidsetParameterTypeId(String parameterTypeId) voidvoidsetSeasonalEndDate(Date date) voidsetSeasonalStartDate(Date date) voidsetSeasonalTimeSeriesId(String timeSeriesId) voidsetSeasonalValues(ISeasonalValues seasonalValues) voidsetSeasonalValuesObject(JDomSeasonalValuesImpl seasonalValues) voidsetSiParameterUnitsConstantValue(double levelValue) voidsetSpecifiedLevel(ISpecifiedLevel level) voidsetSpecifiedLevelId(String specifiedLevelId) voidtoString()Methods inherited from class hec.data.AbstractJDomDataObject
buildElementOrRemove, camelCaseToLowerUnderbar, getDefaultElementName, getXmlDate, getXmlValue, parseDouble, parseFormattedDouble, parseInt, setXmlDate, setXmlValue, toXmlStringMethods inherited from class hec.lang.NamedType
addModifiableListener, clone, compareTo, fireModifiedStateChanged, getDescription, getDisplayName, getFieldObject, getIgnoreModifiedEvents, getIndex, getName, isModified, isValid, readResolve, removeModifiableListener, rename, set, setDescription, setFieldObject, setIgnoreModifiedEvents, setIndex, setModified, setName, setValid, update, useRecursiveModifiedTestMethods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface rma.lang.Modifiable
isModified, setModifiedMethods inherited from interface hec.data.XmlString
toXmlString
-
Field Details
-
DELIM
- See Also:
-
-
Constructor Details
-
JDomLocationLevelImpl
public JDomLocationLevelImpl() -
JDomLocationLevelImpl
public JDomLocationLevelImpl(LocationTemplate locationRef, ISpecifiedLevel specifiedLevel, IParameterTypedValue value, IAttributeParameterTypedValue attribute, Date date, String levelUnits) -
JDomLocationLevelImpl
-
JDomLocationLevelImpl
public JDomLocationLevelImpl(String officeId, String locLevelId, Date effectiveDate, String levelUnits, String attributeId, String attributeValue, String attributeUnits) throws DataSetException - Throws:
DataSetException
-
JDomLocationLevelImpl
public JDomLocationLevelImpl(org.jdom.Element element)
-
-
Method Details
-
buildElement
public void buildElement(org.jdom.Element element) Description copied from class:AbstractJDomDataObjectPopulates the element with data from this object.- Specified by:
buildElementin classAbstractJDomDataObject
-
hashCode
public int hashCode() -
equals
-
getLocationLevelRef
- Specified by:
getLocationLevelRefin interfaceILocationLevel
-
setLocationLevelRef
- Specified by:
setLocationLevelRefin interfaceILocationLevel
-
setSpecifiedLevel
- Specified by:
setSpecifiedLevelin interfaceILocationLevel
-
getSpecifiedLevel
- Specified by:
getSpecifiedLevelin interfaceILocationLevel
-
getConstantLevel
- Specified by:
getConstantLevelin interfaceILocationLevel
-
getDate
- Specified by:
getDatein interfaceILocationLevel
-
getSeasonalValues
- Specified by:
getSeasonalValuesin interfaceILocationLevel
-
getLocationRef
- Specified by:
getLocationRefin interfaceILocationLevel
-
setLocationRef
- Specified by:
setLocationRefin interfaceILocationLevel
-
setDate
- Specified by:
setDatein interfaceILocationLevel
-
setConstantLevel
- Specified by:
setConstantLevelin interfaceILocationLevel
-
toString
-
getOfficeId
- Specified by:
getOfficeIdin interfaceILocationLevel
-
setOfficeId
-
getLocationId
-
setLocationId
-
getAttributeComment
-
setAttributeComment
-
getAttributeDurationId
-
setAttributeDurationId
public void setAttributeDurationId(String attributeDurationId) throws DataSetIllegalArgumentException - Throws:
DataSetIllegalArgumentException
-
getAttributeParameterId
-
setAttributeParameterId
public void setAttributeParameterId(String attributeParameterId) throws DataSetIllegalArgumentException - Throws:
DataSetIllegalArgumentException
-
getAttributeParameterTypeId
-
setAttributeParameterTypeId
public void setAttributeParameterTypeId(String attributeParameterTypeId) throws DataSetIllegalArgumentException - Throws:
DataSetIllegalArgumentException
-
getAttributeUnitsId
-
setAttributeUnitsId
-
getAttributeValue
-
setAttributeValue
-
getDurationId
-
setDurationId
- Throws:
DataSetIllegalArgumentException
-
getIndicators
-
setIndicators
-
getInterpolateString
called when data is stored to the database- Returns:
-
setInterpolateString
-
getIntervalMinutes
public int getIntervalMinutes() -
setIntervalMinutes
public void setIntervalMinutes(int intervalMinutes) -
getIntervalMonths
public int getIntervalMonths() -
setIntervalMonths
public void setIntervalMonths(int intervalMonths) -
getIntervalOrigin
-
setIntervalOrigin
-
getLevelComment
- Specified by:
getLevelCommentin interfaceILocationLevel
-
setLevelComment
- Specified by:
setLevelCommentin interfaceILocationLevel
-
getLevelDate
-
setLevelDate
-
getLevelUnitsId
-
setLevelUnitsId
-
getSiParameterUnitsConstantValue
public double getSiParameterUnitsConstantValue() -
setSiParameterUnitsConstantValue
public void setSiParameterUnitsConstantValue(double levelValue) -
getParameterId
-
setParameterId
- Throws:
DataSetIllegalArgumentException
-
getParameterTypeId
-
setParameterTypeId
- Throws:
DataSetIllegalArgumentException
-
getSeasonalValuesObject
-
setSeasonalValues
- Specified by:
setSeasonalValuesin interfaceILocationLevel
-
setSeasonalValuesObject
-
getSpecifiedLevelId
-
setSpecifiedLevelId
-
getSeasonalTimeSeriesId
- Specified by:
getSeasonalTimeSeriesIdin interfaceILocationLevel
-
setSeasonalTimeSeriesId
- Specified by:
setSeasonalTimeSeriesIdin interfaceILocationLevel
-
isSeasonalRepeating
public boolean isSeasonalRepeating()- Specified by:
isSeasonalRepeatingin interfaceILocationLevel
-
isSeasonalTimeSeries
public boolean isSeasonalTimeSeries()- Specified by:
isSeasonalTimeSeriesin interfaceILocationLevel
-
isConstantValue
public boolean isConstantValue()- Specified by:
isConstantValuein interfaceILocationLevel
-
getParameter
- Specified by:
getParameterin interfaceILocationLevel
-
setParameter
- Specified by:
setParameterin interfaceILocationLevel
-
getParameterType
- Specified by:
getParameterTypein interfaceILocationLevel
-
setParameterType
- Specified by:
setParameterTypein interfaceILocationLevel
-
getDuration
- Specified by:
getDurationin interfaceILocationLevel
-
setDuration
- Specified by:
setDurationin interfaceILocationLevel
-
getPrototypeLevel
- Specified by:
getPrototypeLevelin interfaceILocationLevel
-
setPrototypeLevel
- Specified by:
setPrototypeLevelin interfaceILocationLevel
-
clearSeasonalValues
public void clearSeasonalValues()- Specified by:
clearSeasonalValuesin interfaceILocationLevel
-
setSeasonalStartDate
- Specified by:
setSeasonalStartDatein interfaceILocationLevel
-
setSeasonalEndDate
- Specified by:
setSeasonalEndDatein interfaceILocationLevel
-
getSeasonalStartDate
Returns assigned seasonal ts start date. Can return null.- Specified by:
getSeasonalStartDatein interfaceILocationLevel- Returns:
-
getSeasonalEndDate
Returns assigned seasonal ts end date. Can return null.- Specified by:
getSeasonalEndDatein interfaceILocationLevel- Returns:
-
getInterpolateSeasonal
- Specified by:
getInterpolateSeasonalin interfaceILocationLevel
-
setInterpolateSeasonal
- Specified by:
setInterpolateSeasonalin interfaceILocationLevel
-
getUnits
- Specified by:
getUnitsin interfaceILocationLevel
-
setUnits
- Specified by:
setUnitsin interfaceILocationLevel
-