Class DataPrimitive
java.lang.Object
com.aquima.interactions.communication.data.DataValue
com.aquima.interactions.communication.data.DataPrimitive
- All Implemented Interfaces:
Serializable
Represents a primitive in the data structure.
- Since:
- 9.3
- Author:
- A.Pragt
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a primitiveDataPrimitive
(DataValuePrimitiveType type, IPrimitiveValue value) Constructs a primitive -
Method Summary
Modifier and TypeMethodDescriptionboolean
getValue()
Returns the primitive value.int
hashCode()
void
setShouldValidate
(boolean shouldValidate) void
setValue
(IPrimitiveValue value) Sets the primitive value.toString()
-
Constructor Details
-
DataPrimitive
Constructs a primitive- Parameters:
type
- The type of this primitive, can't be null.
-
DataPrimitive
Constructs a primitive- Parameters:
type
- The type of this primitive, can't be null.value
- The primitive value to be stored, can be null.
-
-
Method Details
-
setShouldValidate
public void setShouldValidate(boolean shouldValidate) -
getValue
Returns the primitive value.- Returns:
- The primitive value, can be null.
-
setValue
Sets the primitive value.When the data type for this is
DataType.STRING
the data type for the specified value must be one of the following:DataType.STRING
,DataType.DATE
,DataType.DATETIME
In all other cases the data type of the specifiedIPrimitiveValue
should match the data type on thisDataPrimitive
.- Parameters:
value
- The primitive value, can be null.
-
hashCode
public int hashCode() -
equals
-
toString
-