Package hec.lang
Class ModelReference
java.lang.Object
hec.lang.ObjectReference
hec.lang.ModelReference
- All Implemented Interfaces:
AsciiSerializable,FieldAccessor,Serializable
- See Also:
-
Field Summary
FieldsFields inherited from class hec.lang.ObjectReference
id -
Constructor Summary
ConstructorsConstructorDescriptionModelReference(int idOrig, int idNew, String clsName, String wksp) ModelReference(int i, String clsName, String wksp) -
Method Summary
Modifier and TypeMethodDescriptionbooleanequals(ModelReference that) booleangetFieldObject(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.booleansetFieldObject(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.toString()Methods inherited from class hec.lang.ObjectReference
clear, getObject, setObject
-
Field Details
-
className
-
wkspName
-
newId
public int newId
-
-
Constructor Details
-
ModelReference
public ModelReference() -
ModelReference
-
ModelReference
-
ModelReference
-
-
Method Details
-
toString
-
equals
-
equals
-
getFieldObject
Description copied from interface:FieldAccessorThis method allows access to java.lang.reflect.Field objects within the implementing class.- Specified by:
getFieldObjectin interfaceFieldAccessor- Overrides:
getFieldObjectin classObjectReference- Parameters:
fld- The field to get.- Returns:
- The data object that is stored in the given field
-
setFieldObject
Description copied from interface:FieldAccessorThis allows access to fields withing the implementing object to set there data.- Specified by:
setFieldObjectin interfaceFieldAccessor- Overrides:
setFieldObjectin classObjectReference- 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
-