Package hec.model
Class DataObjectProxy
java.lang.Object
hec.model.DataObjectProxy
- All Implemented Interfaces:
AsciiSerializable
,FieldAccessor
,DataStruct
,Serializable
A simple proxy for managing DataObject references in a DataStorage object.
First use is in AsciiSplitDataStorage
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetData()
getFieldObject
(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.long
getId()
return this DataStruct's IDboolean
setFieldObject
(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.
-
Field Details
-
name
-
id
public long id -
className
-
dataObject
-
-
Constructor Details
-
DataObjectProxy
public DataObjectProxy() -
DataObjectProxy
-
-
Method Details
-
getId
public long getId()Description copied from interface:DataStruct
return this DataStruct's ID- Specified by:
getId
in interfaceDataStruct
-
getData
-
getFieldObject
Description copied from interface:FieldAccessor
This method allows access to java.lang.reflect.Field objects within the implementing class.- Specified by:
getFieldObject
in interfaceFieldAccessor
- Parameters:
fld
- The field to get.- Returns:
- The data object that is stored in the given field
-
setFieldObject
Description copied from interface:FieldAccessor
This allows access to fields withing the implementing object to set there data.- Specified by:
setFieldObject
in interfaceFieldAccessor
- Parameters:
fld
- The java field object representing the member field to be setfobj
- The data to set in that field- Returns:
- returns true if successful
-