Class AttributeDelegate
java.lang.Object
com.aquima.interactions.rule.parser.AttributeDelegate
- All Implemented Interfaces:
IValueDefinition
This class maps the methods of an attribute definition to the IValueDefinition interface.
- Since:
- 5.0
- Author:
- O. Kerpershoek
-
Constructor Summary
ConstructorsConstructorDescriptionAttributeDelegate
(IAttributeDefinition definition) Constructs the attribute delegate for the specified attribute definition. -
Method Summary
-
Constructor Details
-
AttributeDelegate
Constructs the attribute delegate for the specified attribute definition.- Parameters:
definition
- The attribute definition for which the delegate should be constructed.
-
-
Method Details
-
getType
Description copied from interface:IValueDefinition
This method returns the data type of the value.- Specified by:
getType
in interfaceIValueDefinition
- Returns:
- the data type of the value.
-
getTypeName
Description copied from interface:IValueDefinition
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.- Specified by:
getTypeName
in interfaceIValueDefinition
- Returns:
- the name of the type the value belongs to.
-
isMultivalue
public boolean isMultivalue()Description copied from interface:IValueDefinition
This method returns a boolean indicating if the value is a list type.- Specified by:
isMultivalue
in interfaceIValueDefinition
- Returns:
- a boolean indicating if the value is a list type.
-
getDomain
Description copied from interface:IValueDefinition
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.- Specified by:
getDomain
in interfaceIValueDefinition
- Returns:
- Array containing the allowed values.
-
toString
-