Package repast.simphony.integration
Class ObjectHolder
java.lang.Object
repast.simphony.integration.ObjectHolder
Class used by the
BeanBuilder
for keeping track of
stored values for detaching purposes.- Author:
- Jerry Vos
-
Constructor Summary
ConstructorDescriptionObjectHolder
(Object parent, String name, Object value, repast.simphony.integration.ObjectHolder.StorageType storageType) Constructs an ObjectHolder with the specified field values. -
Method Summary
-
Constructor Details
-
ObjectHolder
public ObjectHolder(Object parent, String name, Object value, repast.simphony.integration.ObjectHolder.StorageType storageType) Constructs an ObjectHolder with the specified field values.- Parameters:
parent
- the object to which the value was stored (or added under)name
- the name the value was stored undervalue
- the value that was storedstorageType
- how the value was stored- See Also:
-
ObjectHolder.StorageType
-
-
Method Details
-
getName
The name that value was stored under.- Returns:
- a string name
-
getParent
The object in which the value was stored (or added under)- Returns:
- an object
-
getValue
The value that was stored.- Returns:
- an object
-
getStorageType
public repast.simphony.integration.ObjectHolder.StorageType getStorageType()How the object was stored.- Returns:
- a
ObjectHolder.StorageType
object - See Also:
-
ObjectHolder.StorageType
-