Package hec.data.level
Class JDomLocationLevelRef
java.lang.Object
java.util.Observable
hec.lang.NamedType
hec.data.AbstractJDomDataObject
hec.data.level.JDomLocationLevelRef
- All Implemented Interfaces:
ILocationLevelRef
,XmlString
,AsciiSerializable
,FieldAccessor
,Serializable
,Cloneable
,Comparable
,Observer
,Modifiable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Pattern
final String
static final String
final Pattern
final String
final Pattern
final String
Fields 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.ILocationLevelRef
ATTRIBUTE, DURATION, ELEMENT, ID, LOCATION, PARAMETER, PARAMETER_TYPE, SPECIFIED_LEVEL
-
Constructor Summary
ConstructorsConstructorDescriptionJDomLocationLevelRef
(ILocationLevelRef iLocationLevelRef) JDomLocationLevelRef
(String officeId, String completeLocLevelIdWithAttribute) JDomLocationLevelRef
(String officeId, String locLevelId, String attributeId, String attributeValue, String attributeUnits) JDomLocationLevelRef
(org.jdom.Element element) -
Method Summary
Modifier and TypeMethodDescriptionvoid
buildElement
(org.jdom.Element element) Populates the element with data from this object.boolean
int
hashCode()
void
setAttribute
(IAttributeParameterTypedValue attribute) void
setDuration
(Duration duration) void
setDurationId
(String durationId) void
setLocationId
(String locationId) final void
setLocationRef
(LocationTemplate locRef) void
setOfficeId
(String officeId) void
setParameter
(Parameter parameter) void
setParameterId
(String parameterId) void
setParameterType
(ParameterType parameterType) void
setParameterTypeId
(String parameterTypeId) final void
setPrototypeLevel
(IParameterTypedValue prototypeParameterTypedValue) final void
setSpecifiedLevel
(ISpecifiedLevel level) void
setSpecifiedLevelId
(String specifiedLevelId) 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
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
-
DELIM
- See Also:
-
levelIdParsingRegexp
- See Also:
-
levelIdParsingPattern
-
attributeIdParsingRegexp
- See Also:
-
attributeIdParsingPattern
-
fullLevelAttributeParsingRegexp
- See Also:
-
fullLevelAttributeParsingPattern
-
-
Constructor Details
-
JDomLocationLevelRef
public JDomLocationLevelRef() -
JDomLocationLevelRef
public JDomLocationLevelRef(org.jdom.Element element) -
JDomLocationLevelRef
-
JDomLocationLevelRef
public JDomLocationLevelRef(String officeId, String completeLocLevelIdWithAttribute) throws DataSetException - Throws:
DataSetException
-
JDomLocationLevelRef
public JDomLocationLevelRef(String officeId, String locLevelId, String attributeId, String attributeValue, String attributeUnits) throws DataSetException - Throws:
DataSetException
-
-
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
-
setSpecifiedLevel
- Specified by:
setSpecifiedLevel
in interfaceILocationLevelRef
-
getSpecifiedLevel
- Specified by:
getSpecifiedLevel
in interfaceILocationLevelRef
-
getLocationRef
- Specified by:
getLocationRef
in interfaceILocationLevelRef
-
setLocationRef
- Specified by:
setLocationRef
in interfaceILocationLevelRef
-
getParameter
- Specified by:
getParameter
in interfaceILocationLevelRef
-
setParameter
- Specified by:
setParameter
in interfaceILocationLevelRef
-
getParameterType
- Specified by:
getParameterType
in interfaceILocationLevelRef
-
setParameterType
- Specified by:
setParameterType
in interfaceILocationLevelRef
-
getDuration
- Specified by:
getDuration
in interfaceILocationLevelRef
-
setDuration
- Specified by:
setDuration
in interfaceILocationLevelRef
-
getPrototypeLevel
- Specified by:
getPrototypeLevel
in interfaceILocationLevelRef
-
setPrototypeLevel
- Specified by:
setPrototypeLevel
in interfaceILocationLevelRef
-
hashCode
public int hashCode() -
equals
-
toString
-
getLocationLevelId
- Specified by:
getLocationLevelId
in interfaceILocationLevelRef
-
getLocationLevelAttributeValueUnitsId
- Specified by:
getLocationLevelAttributeValueUnitsId
in interfaceILocationLevelRef
-
getOfficeId
- Specified by:
getOfficeId
in interfaceILocationLevelRef
-
setOfficeId
-
getLocationId
-
setLocationId
-
setDurationId
- Throws:
DataSetIllegalArgumentException
-
setParameterId
- Throws:
DataSetIllegalArgumentException
-
setParameterTypeId
- Throws:
DataSetIllegalArgumentException
-
setSpecifiedLevelId
-
getAttribute
- Specified by:
getAttribute
in interfaceILocationLevelRef
-
setAttribute
- Specified by:
setAttribute
in interfaceILocationLevelRef
-