Package hec.data.watersupply
Class JDomWaterUserImpl
java.lang.Object
java.util.Observable
hec.lang.NamedType
hec.data.AbstractJDomDataObject
hec.data.watersupply.JDomWaterUserImpl
- All Implemented Interfaces:
ILocationChild
,IWaterUser
,XmlString
,AsciiSerializable
,FieldAccessor
,Serializable
,Cloneable
,Comparable
,Observer
,Modifiable
- See Also:
-
Field Summary
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.watersupply.IWaterUser
ENTITY_NAME, WATER_RIGHT, WATER_USER_PROJECT_LOCATION
-
Constructor Summary
ConstructorsConstructorDescriptionJDomWaterUserImpl
(IWaterUser contractWaterUser) JDomWaterUserImpl
(String entityName, String waterRight, LocationTemplate waterUserProjectLoc) JDomWaterUserImpl
(org.jdom.Element element) -
Method Summary
Modifier and TypeMethodDescriptionvoid
buildElement
(org.jdom.Element element) Populates the element with data from this object.boolean
Gets the entity name.Gets the water user project loc.Gets the water right.int
hashCode()
void
setEntityName
(String entityName) Sets the entity name.void
setParentLocationRef
(LocationTemplate waterUserProjectLoc) Sets the water user project loc.void
setWaterRight
(String waterRight) Sets the water right.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, 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
-
Constructor Details
-
JDomWaterUserImpl
public JDomWaterUserImpl() -
JDomWaterUserImpl
public JDomWaterUserImpl(String entityName, String waterRight, LocationTemplate waterUserProjectLoc) -
JDomWaterUserImpl
public JDomWaterUserImpl(org.jdom.Element element) -
JDomWaterUserImpl
-
-
Method Details
-
getEntityName
Description copied from interface:IWaterUser
Gets the entity name.- Specified by:
getEntityName
in interfaceIWaterUser
- Returns:
- the entity name
-
setEntityName
Description copied from interface:IWaterUser
Sets the entity name.- Specified by:
setEntityName
in interfaceIWaterUser
- Parameters:
entityName
- the new entity name
-
getWaterRight
Description copied from interface:IWaterUser
Gets the water right.- Specified by:
getWaterRight
in interfaceIWaterUser
- Returns:
- the water right
-
setWaterRight
Description copied from interface:IWaterUser
Sets the water right.- Specified by:
setWaterRight
in interfaceIWaterUser
- Parameters:
waterRight
- the new water right
-
getParentLocationRef
Description copied from interface:IWaterUser
Gets the water user project loc.- Specified by:
getParentLocationRef
in interfaceILocationChild
- Specified by:
getParentLocationRef
in interfaceIWaterUser
- Returns:
- the water user project loc
-
setParentLocationRef
Description copied from interface:IWaterUser
Sets the water user project loc.- Specified by:
setParentLocationRef
in interfaceILocationChild
- Specified by:
setParentLocationRef
in interfaceIWaterUser
- Parameters:
waterUserProjectLoc
- the new water user project loc
-
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
-