Package com.aquima.interactions.profile
Class ValueReference
java.lang.Object
com.aquima.interactions.foundation.types.AbstractValue
com.aquima.interactions.foundation.types.EntityValue
com.aquima.interactions.profile.ValueReference
- All Implemented Interfaces:
IConvertable
,IPrimitiveValue
,ISingleValue
,IValue
,Serializable
,Comparable<Object>
- Direct Known Subclasses:
InstanceReferrer
A value reference is a reference to an attribute of a specific instance. The reference holds both information about
the instance and the attribute that is referred.
- Since:
- 5.0
- Author:
- O. Kerpershoek
- See Also:
-
Field Summary
Fields inherited from class com.aquima.interactions.foundation.types.EntityValue
UNKNOWN
-
Constructor Summary
ConstructorsConstructorDescriptionValueReference
(EntityValue instanceRef, String attribute) Constructs a value reference with an instance reference and an attribute name. -
Method Summary
Modifier and TypeMethodDescriptionboolean
This method returns the attribute name of the attribute this reference points to.static ValueReference
getReference
(IEntityInstance instance, String attributeName) This method returns the value reference for an instance and an attribute name.int
hashCode()
toString()
Methods inherited from class com.aquima.interactions.foundation.types.EntityValue
booleanValue, compareSimple, compareTo, contains, dateValue, doubleValue, duplicate, forType, getDataType, getId, getName, getSequenceNr, getValue, integerValue, isUnknown, longValue, stringValue, valueOf
Methods inherited from class com.aquima.interactions.foundation.types.AbstractValue
getDisplayValue, getTypeName, isRangeValue, isSingleValue, toListValue, toRangeValue, toSingleValue
-
Constructor Details
-
ValueReference
Constructs a value reference with an instance reference and an attribute name.- Parameters:
instanceRef
- Object containing the information to uniquely identify an instance.attribute
- The name of the attribute that is referred.
-
-
Method Details
-
getReference
This method returns the value reference for an instance and an attribute name.- Parameters:
instance
- The instance.attributeName
- The attribute name.- Returns:
- The value reference object, which is never null
-
getAttributeName
This method returns the attribute name of the attribute this reference points to.- Returns:
- The attribute name of the reference.
-
toString
- Overrides:
toString
in classEntityValue
-
hashCode
public int hashCode()- Overrides:
hashCode
in classEntityValue
-
equals
- Overrides:
equals
in classEntityValue
-