Package hec.data.level
Class JDomAttributeParameterTypedValue
java.lang.Object
java.util.Observable
hec.lang.NamedType
hec.data.AbstractJDomDataObject
hec.data.level.JDomAttributeParameterTypedValue
- All Implemented Interfaces:
IAttributeParameterTypedValue
,XmlString
,AsciiSerializable
,FieldAccessor
,Serializable
,Cloneable
,Comparable
,Observer
,Modifiable
public class JDomAttributeParameterTypedValue
extends AbstractJDomDataObject
implements IAttributeParameterTypedValue
Attribute units must be tracked and value kept in assigned units.
- 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
Fields inherited from interface hec.data.level.IAttributeParameterTypedValue
COMMENT, DURATION, ID, PARAMETER, PARAMETER_TYPE, VALUE
-
Constructor Summary
ConstructorsConstructorDescriptionJDomAttributeParameterTypedValue
(Parameter attrParameter, ParameterType attrParameterType, Duration attrDuration, String attributeValue, String attributeUnits) JDomAttributeParameterTypedValue
(org.jdom.Element element) -
Method Summary
Modifier and TypeMethodDescriptionvoid
buildElement
(org.jdom.Element element) Populates the element with data from this object.getUnits()
getValue()
void
setComment
(String comment) void
setDuration
(Duration duration) void
setParameter
(Parameter param) void
void
void
toString()
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, clone, compareTo, fireModifiedStateChanged, getDescription, getDisplayName, getFieldObject, getIgnoreModifiedEvents, getIndex, getName, isModified, isValid, readResolve, removeModifiableListener, rename, set, setDescription, setFieldObject, setIgnoreModifiedEvents, setIndex, setModified, setName, setValid, 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
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface rma.lang.Modifiable
isModified, setModified
Methods inherited from interface hec.data.XmlString
toXmlString
-
Field Details
-
DELIM
- See Also:
-
-
Constructor Details
-
JDomAttributeParameterTypedValue
public JDomAttributeParameterTypedValue() -
JDomAttributeParameterTypedValue
public JDomAttributeParameterTypedValue(org.jdom.Element element) -
JDomAttributeParameterTypedValue
-
JDomAttributeParameterTypedValue
public JDomAttributeParameterTypedValue(Parameter attrParameter, ParameterType attrParameterType, Duration attrDuration, String attributeValue, String attributeUnits)
-
-
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
-
getValue
- Specified by:
getValue
in interfaceIAttributeParameterTypedValue
-
getValueBigDecimal
- Specified by:
getValueBigDecimal
in interfaceIAttributeParameterTypedValue
-
setValue
- Specified by:
setValue
in interfaceIAttributeParameterTypedValue
-
getUnits
- Specified by:
getUnits
in interfaceIAttributeParameterTypedValue
-
setUnits
- Specified by:
setUnits
in interfaceIAttributeParameterTypedValue
-
getParameter
- Specified by:
getParameter
in interfaceIAttributeParameterTypedValue
-
setParameter
- Specified by:
setParameter
in interfaceIAttributeParameterTypedValue
-
getParameterType
- Specified by:
getParameterType
in interfaceIAttributeParameterTypedValue
-
setParameterType
- Specified by:
setParameterType
in interfaceIAttributeParameterTypedValue
-
getDuration
- Specified by:
getDuration
in interfaceIAttributeParameterTypedValue
-
setDuration
- Specified by:
setDuration
in interfaceIAttributeParameterTypedValue
-
getComment
- Specified by:
getComment
in interfaceIAttributeParameterTypedValue
-
setComment
- Specified by:
setComment
in interfaceIAttributeParameterTypedValue
-
getFullAttributeId
- Specified by:
getFullAttributeId
in interfaceIAttributeParameterTypedValue
-
toString
-
getAttributeId
- Specified by:
getAttributeId
in interfaceIAttributeParameterTypedValue
-