Class Domain
java.lang.Object
com.aquima.interactions.expressions.definition.Domain
- All Implemented Interfaces:
Serializable
This class represents the domain of a typed expression. As an expression may yield a multi-value result, the domain
may consist of a collection of value lists.
- Since:
- 5.0
- Author:
- O. Kerpershoek
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis method may be used to add a value to the domain.This method may be used to add an array of values to the domain.This method returns the type of the domain.getValueAt
(int index) This method returns the value from the specified index.int
This method returns an integer with the number of values that are present in the domain.IValue[]
This method returns an array with all the values from the domain.boolean
isEmpty()
This method returns a boolean indicating if the domain is empty.
-
Constructor Details
-
Domain
Constructs a derived empty domain for the specified type.- Parameters:
type
- The type of the domain.
-
-
Method Details
-
getDataType
This method returns the type of the domain.- Returns:
- the type of the domain.
-
add
This method may be used to add a value to the domain.- Parameters:
domainValue
- The value that should be added.- Returns:
- Reference to the domain to allow method chaining.
-
addAll
This method may be used to add an array of values to the domain.- Parameters:
values
- Array of values that should be added.- Returns:
- Reference to the domain to allow method chaining.
-
getValues
This method returns an array with all the values from the domain.- Returns:
- an array with all the values from the domain.
-
getValueAt
This method returns the value from the specified index.- Parameters:
index
- The index of the requested value.- Returns:
- The value from the specified index.
-
getValueCount
public int getValueCount()This method returns an integer with the number of values that are present in the domain.- Returns:
- an integer with the number of values that are present in the domain.
-
isEmpty
public boolean isEmpty()This method returns a boolean indicating if the domain is empty.- Returns:
- a boolean indicating if the domain is empty.
-