Class Domain
java.lang.Object
com.aquima.interactions.foundation.convert.Convertable
com.aquima.interactions.foundation.types.ListValue
com.aquima.interactions.profile.model.Domain
- All Implemented Interfaces:
IConvertable
,IListValue
,IValue
,IDomain
,Serializable
The domain class is used to hold all the values that are valid for an attribute. The values in the domain may not be
(re)ordered, as they need to be in the same order as specified by the data-source.
- Since:
- 5.0
- Author:
- O. Kerpershoek
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDomain
(IDomainDefinition definition) Constructs the domain from the domain definition, using all the values from the defined domain.Domain
(IDomainDefinition definition, IPrimitiveValue[] values) Constructs the domain from the definition and an array of values that are currently valid. -
Method Summary
Modifier and TypeMethodDescriptionboolean
This method returns a boolean indicating if the object passed to this method is entirely part of this value.This method returns the definition of this domain.This method returns the internal domain value identified by the given object value.Methods inherited from class com.aquima.interactions.foundation.types.ListValue
addAll, addValue, clearValues, duplicate, equals, getDataType, getInternalValues, getSortedValues, getValue, getValueAt, getValueCount, getValues, hashCode, insertValue, isEmpty, isRangeValue, isSingleValue, isUniqueSet, isUnknown, removeValue, toListValue, toRangeValue, toSingleValue, toString, unknownFor
Methods inherited from class com.aquima.interactions.foundation.convert.Convertable
booleanValue, dateValue, doubleValue, integerValue, longValue, stringValue
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
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.IListValue
getSortedValues, getValueAt, getValueCount, getValues, isEmpty, isUniqueSet
Methods inherited from interface com.aquima.interactions.foundation.IValue
duplicate, getDataType, isRangeValue, isSingleValue, isUnknown, toListValue, toRangeValue, toSingleValue
-
Constructor Details
-
Domain
Constructs the domain from the domain definition, using all the values from the defined domain.- Parameters:
definition
- The definition that should be used to construct the domain.
-
Domain
Constructs the domain from the definition and an array of values that are currently valid.- Parameters:
definition
- The domain definition of the domain.values
- Array of values that are currently valid in the domain.
-
-
Method Details
-
getDefinition
Description copied from interface:IDomain
This method returns the definition of this domain. The domain definition contains additional information like the name and the complete set of values that may be valid.- Specified by:
getDefinition
in interfaceIDomain
- Returns:
- The definition of this domain.
-
contains
Description copied from interface:IValue
This method returns a boolean indicating if the object passed to this method is entirely part of this value. This method will thus also return true when the object passed is equal to this value, but the method will return false when only part (or none) of the object is represented by this value. Note that for value types that are singular in nature (for instance, implementations of ISingleValue) the operation of this method is limited to an equality check. -
getValue
Description copied from interface:IDomain
This method returns the internal domain value identified by the given object value. The value passed to this method may be a string containing the short value of the requested domain value, or a IPrimitiveValue containing the short value.
-