Interface IValueDefinition
- All Known Implementing Classes:
AttributeDelegate
,TslIndexDefinition
public interface IValueDefinition
This interface exposes the methods that are needed by the expression parser in order to work with values from an
external source. The interface contains the type information needed to validate expressions using such external
values.
- Since:
- 5.0
- Author:
- O. Kerpershoek, F. van der Meer
-
Method Summary
Modifier and TypeMethodDescriptionThis method returns the values that are allowed.getType()
This method returns the data type of the value.This method returns the name of the type the value belongs to.boolean
This method returns a boolean indicating if the value is a list type.
-
Method Details
-
getType
DataType getType()This method returns the data type of the value.- Returns:
- the data type of the value.
-
isMultivalue
boolean isMultivalue()This method returns a boolean indicating if the value is a list type.- Returns:
- a boolean indicating if the value is a list type.
-
getTypeName
String getTypeName()This method returns the name of the type the value belongs to. The type name is only relevant for values which belong to a domain or entity.- Returns:
- the name of the type the value belongs to.
-
getDomain
IPrimitiveValue[] getDomain()This method returns the values that are allowed. When there are no restrictions to the range of allowed values, the method should return a null value.- Returns:
- Array containing the allowed values.
-