Class EntityContextDelegate
java.lang.Object
com.aquima.interactions.foundation.types.AbstractValue
com.aquima.interactions.foundation.types.EntityValue
com.aquima.interactions.rule.parser.EntityContextDelegate
- All Implemented Interfaces:
ICompoundValue
,IConvertable
,IPrimitiveValue
,ISingleValue
,IValue
,Serializable
,Comparable<Object>
Entity context delegate which maps the methods of an entity instance to the ICompoundValue interface.
- Since:
- 5.0
- Author:
- O. Kerpershoek
- See Also:
-
Field Summary
Fields inherited from class com.aquima.interactions.foundation.types.EntityValue
UNKNOWN
-
Constructor Summary
ConstructorsConstructorDescriptionEntityContextDelegate
(IProfile profile, IEntityInstance entity) Creates the entity context delegate using the specified profile and instance. -
Method Summary
Modifier and TypeMethodDescriptionThis method will return the value of the specified property.boolean
instanceOf
(String typeName) This method returns a boolean indicating if this compound value is of the specified type.Methods inherited from class com.aquima.interactions.foundation.types.EntityValue
booleanValue, compareSimple, compareTo, contains, dateValue, doubleValue, duplicate, equals, forType, getDataType, getId, getName, getSequenceNr, getValue, hashCode, integerValue, isUnknown, longValue, stringValue, toString, valueOf
Methods inherited from class com.aquima.interactions.foundation.types.AbstractValue
getDisplayValue, getTypeName, isRangeValue, isSingleValue, toListValue, toRangeValue, toSingleValue
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface com.aquima.interactions.foundation.convert.IConvertable
booleanValue, dateValue, doubleValue, getValue, integerValue, longValue, stringValue
Methods inherited from interface com.aquima.interactions.foundation.IPrimitiveValue
forType, getDisplayValue, getTypeName
Methods inherited from interface com.aquima.interactions.foundation.IValue
contains, duplicate, getDataType, isRangeValue, isSingleValue, isUnknown, toListValue, toRangeValue, toSingleValue
-
Constructor Details
-
EntityContextDelegate
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
Description copied from interface:ICompoundValue
This method will return the value of the specified property.- Specified by:
getValue
in interfaceICompoundValue
- Parameters:
name
- The name of the property whose value is requested.- Returns:
- The value of the property.
-
instanceOf
Description copied from interface:ICompoundValue
This method returns a boolean indicating if this compound value is of the specified type.- Specified by:
instanceOf
in interfaceICompoundValue
- 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.
-