Package hec.clientapp.model
Class HecDataTypeFactory
java.lang.Object
hec.gfx2d.DataTypeFactory
hec.clientapp.model.HecDataTypeFactory
-
Field Summary
Fields inherited from class hec.gfx2d.DataTypeFactory
_debug, DEFAULT_PACKAGE, DSS_TYPES, INST_CUM, INST_VAL, PER_AVER, PER_CUM, PLOT_LINES_FILE, UNDEFINED_DATA_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BufferedWriterprotected booleanreadFile()Reads all of the DataType properties.Methods inherited from class hec.gfx2d.DataTypeFactory
addDataType, getAlwaysFirstLineProperty, getDataType, getDataType, getDataType, getDataTypes, getDataTypes, getExcessParameter, getFactory, getFileReader, getLine, getLineProperties, getLineProperties, getLineProperties, getLineProperties, getLineProperties, getLineProperties, getLineProperties, getLineProperties, getLineProperties, getLineProperties, getLineProperties, getLocationList, getParameter, getType, isInstanteous, readFile, reset, setDefaultPackage, setFactory, setOverrideFile, writeFile
-
Constructor Details
-
HecDataTypeFactory
public HecDataTypeFactory()Constructor for the DataTypeFactory object
-
-
Method Details
-
getFileWriter
- Overrides:
getFileWriterin classDataTypeFactory
-
getFileName
- Overrides:
getFileNamein classDataTypeFactory- Returns:
- The FileName value
-
readFile
protected boolean readFile()Reads all of the DataType properties. First it reades from the default plot line file stored in the JARS "hec/gfx2d/plotLines", then it traverses the various preferences directories i.e. CWMS_ALL -> USER_WATERSHED- Overrides:
readFilein classDataTypeFactory- Returns:
- true if succssfull otherwise false.
-