Package hec.rss.model.globalvariable
Class AltStringGlobalData
java.lang.Object
java.util.Observable
hec.lang.NamedType
hec.rss.model.globalvariable.BaseAltGlobalData
hec.rss.model.globalvariable.AltStringGlobalData
- All Implemented Interfaces:
AsciiSerializable,FieldAccessor,GlobalVariableData,Serializable,Cloneable,Comparable,Observer,rma.lang.Modifiable
- See Also:
-
Field Summary
Fields inherited from class hec.rss.model.globalvariable.BaseAltGlobalData
_globalVariable, _valueFields inherited from class hec.lang.NamedType
_description, _ignoreModifiedEvents, _index, _isValid, _modified, _name, defaultDescription, defaultName, DESCRIPTION_CHANGED, NAME_CHANGED, RENAME_EVENT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanmethod for subclasses to override to finsih reading dataprotected booleanfinishWritingData(String alternateDssFile) method for subclasses that need to do more than just the standard write datagetType()getValue()get the value for the StringGlobalVariablebooleanloadData()booleanwriteDssData(String alternateDssFile) protected booleanwriteDssTextValue(String alternateDssFile, Object value) write the String Global Variables data as a Text DSS recordMethods inherited from class hec.rss.model.globalvariable.BaseAltGlobalData
canCoerceValue, clone, copyInto, equals, getCoercedValue, getDssEPart, getDSSFilename, getDSSPathname, getDSSPathname, getGlobalVariableDataLocation, getGVDataSet, getRelativePath, hashCode, isMarkedForDeletion, markForDelete, parseGVRecord, readData, readDssData, readDssTextValue, readDssTextValue, setDSSFilename, setDSSPathname, setGlobalVariable, setGVDataSet, setValue, writeAdditionalInfo, writeDataMethods inherited from class hec.lang.NamedType
addModifiableListener, 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 hec.rss.model.globalvariable.GlobalVariableData
getDescription, getIndex, getName, setDescription, setIndex, setName
-
Constructor Details
-
AltStringGlobalData
public AltStringGlobalData() -
AltStringGlobalData
-
-
Method Details
-
getType
- Specified by:
getTypein interfaceGlobalVariableData- Specified by:
getTypein classBaseAltGlobalData
-
finishWritingData
method for subclasses that need to do more than just the standard write data- Overrides:
finishWritingDatain classBaseAltGlobalData- Returns:
- true for success
-
finishReadingData
protected boolean finishReadingData()method for subclasses to override to finsih reading data- Overrides:
finishReadingDatain classBaseAltGlobalData- Returns:
- true for success
-
getValue
get the value for the StringGlobalVariable- Specified by:
getValuein interfaceGlobalVariableData- Overrides:
getValuein classBaseAltGlobalData- Returns:
- the value
-
writeDssData
- Specified by:
writeDssDatain interfaceGlobalVariableData- Specified by:
writeDssDatain classBaseAltGlobalData
-
writeDssTextValue
write the String Global Variables data as a Text DSS record- Overrides:
writeDssTextValuein classBaseAltGlobalData- Parameters:
alternateDssFile- the alternative Dss filevalue- the value- Returns:
- true if successful, false if not
-
loadData
public boolean loadData()- Specified by:
loadDatain interfaceGlobalVariableData- Overrides:
loadDatain classBaseAltGlobalData- Returns:
- - true if successfully loaded
-