Package com.aquima.interactions.profile
Class InstanceReferrer
java.lang.Object
com.aquima.interactions.foundation.types.AbstractValue
com.aquima.interactions.foundation.types.EntityValue
com.aquima.interactions.profile.ValueReference
com.aquima.interactions.profile.InstanceReferrer
- All Implemented Interfaces:
IConvertable
,IPrimitiveValue
,ISingleValue
,IValue
,Serializable
,Comparable<Object>
This class is used to identify the relation between an attribute referring an instance. To be able to correctly
identify this relation, a reference to the entity attribute is required (hence the inheritance of ValueReference) and
the id of the instance that is being referred (the getReferredInstanceId method).
- Since:
- 5.0
- Author:
- O. Kerpershoek
- See Also:
-
Field Summary
Fields inherited from class com.aquima.interactions.foundation.types.EntityValue
UNKNOWN
-
Constructor Summary
ConstructorsConstructorDescriptionInstanceReferrer
(EntityValue instance, String attribute, GUID referredId) Constructs an instance referrer with an entity value identifying the instance that contains the attribute referring the instance identified by the referrer id. -
Method Summary
Modifier and TypeMethodDescriptionboolean
This method returns the instance id of the entity instance that this object is referring to.int
hashCode()
Methods inherited from class com.aquima.interactions.profile.ValueReference
getAttributeName, getReference, 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
-
InstanceReferrer
Constructs an instance referrer with an entity value identifying the instance that contains the attribute referring the instance identified by the referrer id.- Parameters:
instance
- Id of the instance containing the referring attribute.attribute
- Name of the attribute referring the instancereferredId
- Id of the instance that is being referred.
-
-
Method Details
-
getReferredInstanceId
This method returns the instance id of the entity instance that this object is referring to. The instance id of the instance containing the reference can be acquired by using the getInstanceId method.- Returns:
- Instance id (long) of the entity instance that this reference is referring to.
-
hashCode
public int hashCode()- Overrides:
hashCode
in classValueReference
-
equals
- Overrides:
equals
in classValueReference
-