Interface IDomainDefinition
- All Superinterfaces:
IConvertable
,IListValue
,IValue
,Serializable
- All Known Implementing Classes:
DomainDefinition
This interface defines a domain. A domain is a set of values that act as a restriction to an attribute.
- Since:
- 5.0
- Author:
- O. Kerpershoek
-
Method Summary
Modifier and TypeMethodDescriptionThis method returns the description of the domain.getDomainValue
(IPrimitiveValue value) Obtains the domain value definition for a particular value, if it exists.getDomainValueAt
(int index) Returns the domain value definition at the specified zero-based index.Returns all the domain value definitions.getName()
Name of the domain definition as defined in the studio.boolean
This method returns a boolean indicating if the values for the domain will be provided by an external source.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
contains, duplicate, getDataType, isRangeValue, isSingleValue, isUnknown, toListValue, toRangeValue, toSingleValue
-
Method Details
-
getName
String getName()Name of the domain definition as defined in the studio.- Returns:
- Name of the domain definition as defined in the studio
-
getDescription
String getDescription()This method returns the description of the domain. The description of a domain is only used for informational purposes.- Returns:
- the description of the domain.
-
isExternalDomain
boolean isExternalDomain()This method returns a boolean indicating if the values for the domain will be provided by an external source. The boolean is used mainly for validation purposes, as an external domain will not have any values during definition in studio.- Returns:
- a boolean indicating if the values for the domain will be provided by an external source.
- Since:
- 9.0
-
getDomainValue
Obtains the domain value definition for a particular value, if it exists. null is returned if no corresponding domain value exists.- Parameters:
value
- the primitive value for which the corresponding domain value definition should be retrieved.- Returns:
- the domain value definition corresponding with `value`, or null if none exists.
-
getDomainValueAt
Returns the domain value definition at the specified zero-based index. The value of the returned domain value definition is the same as the value returned byIListValue.getValueAt(int)
at the same index.This method should be used over
IListValue.getValueAt(int)
when additional information about the domain value is needed (such as presentation styles).The total number of domain values may be obtained using
IListValue.getValueCount()
.- Parameters:
index
- the index of the domain value definition- Returns:
- the domain value definition
-
getDomainValues
IDomainValueDefinition[] getDomainValues()Returns all the domain value definitions. The values in each domain value definition at index n is the same as the value at index n in the array returned byIListValue.getValues()
.This method should be used over
IListValue.getValues()
when additional information about the domain values is needed (such as presentation styles).- Returns:
- all domain values
-