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, 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.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 TypeMethodDescriptionvoidbuildElement(org.jdom.Element element) Populates the element with data from this object.booleanGets the entity name.Gets the water user project loc.Gets the water right.inthashCode()voidsetEntityName(String entityName) Sets the entity name.voidsetParentLocationRef(LocationTemplate waterUserProjectLoc) Sets the water user project loc.voidsetWaterRight(String waterRight) Sets the water right.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, toString, 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
-
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:IWaterUserGets the entity name.- Specified by:
getEntityNamein interfaceIWaterUser- Returns:
- the entity name
-
setEntityName
Description copied from interface:IWaterUserSets the entity name.- Specified by:
setEntityNamein interfaceIWaterUser- Parameters:
entityName- the new entity name
-
getWaterRight
Description copied from interface:IWaterUserGets the water right.- Specified by:
getWaterRightin interfaceIWaterUser- Returns:
- the water right
-
setWaterRight
Description copied from interface:IWaterUserSets the water right.- Specified by:
setWaterRightin interfaceIWaterUser- Parameters:
waterRight- the new water right
-
getParentLocationRef
Description copied from interface:IWaterUserGets the water user project loc.- Specified by:
getParentLocationRefin interfaceILocationChild- Specified by:
getParentLocationRefin interfaceIWaterUser- Returns:
- the water user project loc
-
setParentLocationRef
Description copied from interface:IWaterUserSets the water user project loc.- Specified by:
setParentLocationRefin interfaceILocationChild- Specified by:
setParentLocationRefin interfaceIWaterUser- Parameters:
waterUserProjectLoc- the new water user project loc
-
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
-