Package repast.simphony.integration
Class ObjectHolder
- java.lang.Object
-
- repast.simphony.integration.ObjectHolder
-
public class ObjectHolder extends Object
Class used by theBeanBuilder
for keeping track of stored values for detaching purposes.- Author:
- Jerry Vos
-
-
Constructor Summary
Constructors Constructor Description ObjectHolder(Object parent, String name, Object value, repast.simphony.integration.ObjectHolder.StorageType storageType)
Constructs an ObjectHolder with the specified field values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
The name that value was stored under.Object
getParent()
The object in which the value was stored (or added under)repast.simphony.integration.ObjectHolder.StorageType
getStorageType()
How the object was stored.Object
getValue()
The value that was stored.
-
-
-
Constructor Detail
-
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 Detail
-
getName
public String getName()
The name that value was stored under.- Returns:
- a string name
-
getParent
public Object getParent()
The object in which the value was stored (or added under)- Returns:
- an object
-
getValue
public 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
-
-