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, 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.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 TypeMethodDescriptionvoidbuildElement(org.jdom.Element element) Populates the element with data from this object.getUnits()getValue()voidsetComment(String comment) voidsetDuration(Duration duration) voidsetParameter(Parameter param) voidvoidvoidtoString()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
equals, finalize, getClass, hashCode, 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
-
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:AbstractJDomDataObjectPopulates the element with data from this object.- Specified by:
buildElementin classAbstractJDomDataObject
-
getValue
- Specified by:
getValuein interfaceIAttributeParameterTypedValue
-
getValueBigDecimal
- Specified by:
getValueBigDecimalin interfaceIAttributeParameterTypedValue
-
setValue
- Specified by:
setValuein interfaceIAttributeParameterTypedValue
-
getUnits
- Specified by:
getUnitsin interfaceIAttributeParameterTypedValue
-
setUnits
- Specified by:
setUnitsin interfaceIAttributeParameterTypedValue
-
getParameter
- Specified by:
getParameterin interfaceIAttributeParameterTypedValue
-
setParameter
- Specified by:
setParameterin interfaceIAttributeParameterTypedValue
-
getParameterType
- Specified by:
getParameterTypein interfaceIAttributeParameterTypedValue
-
setParameterType
- Specified by:
setParameterTypein interfaceIAttributeParameterTypedValue
-
getDuration
- Specified by:
getDurationin interfaceIAttributeParameterTypedValue
-
setDuration
- Specified by:
setDurationin interfaceIAttributeParameterTypedValue
-
getComment
- Specified by:
getCommentin interfaceIAttributeParameterTypedValue
-
setComment
- Specified by:
setCommentin interfaceIAttributeParameterTypedValue
-
getFullAttributeId
- Specified by:
getFullAttributeIdin interfaceIAttributeParameterTypedValue
-
toString
-
getAttributeId
- Specified by:
getAttributeIdin interfaceIAttributeParameterTypedValue
-