Class EntityContextDelegate

All Implemented Interfaces:
ICompoundValue, IConvertable, IPrimitiveValue, ISingleValue, IValue, Serializable, Comparable<Object>

public class EntityContextDelegate extends EntityValue implements ICompoundValue
Entity context delegate which maps the methods of an entity instance to the ICompoundValue interface.
Since:
5.0
Author:
O. Kerpershoek
See Also:
  • Constructor Details

    • EntityContextDelegate

      public EntityContextDelegate(IProfile profile, IEntityInstance entity)
      Creates the entity context delegate using the specified profile and instance.
      Parameters:
      profile - The profile that may be used to locate instances.
      entity - The entity instance that should be represented by this delegate.
  • Method Details

    • getValue

      public IValue getValue(String name)
      Description copied from interface: ICompoundValue
      This method will return the value of the specified property.
      Specified by:
      getValue in interface ICompoundValue
      Parameters:
      name - The name of the property whose value is requested.
      Returns:
      The value of the property.
    • instanceOf

      public boolean instanceOf(String typeName)
      Description copied from interface: ICompoundValue
      This method returns a boolean indicating if this compound value is of the specified type.
      Specified by:
      instanceOf in interface ICompoundValue
      Parameters:
      typeName - The name of the type against which this compound value should be checked.
      Returns:
      a boolean indicating if this compound value is of the specified type.