Class ObjectHolder

java.lang.Object
repast.simphony.integration.ObjectHolder

public class ObjectHolder extends Object
Class used by the BeanBuilder for keeping track of stored values for detaching purposes.
Author:
Jerry Vos
  • 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 under
      value - the value that was stored
      storageType - how the value was stored
      See Also:
      • ObjectHolder.StorageType
  • Method Details

    • 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