Class AttributeDelegate

java.lang.Object
com.aquima.interactions.rule.parser.AttributeDelegate
All Implemented Interfaces:
IValueDefinition

public class AttributeDelegate extends Object implements IValueDefinition
This class maps the methods of an attribute definition to the IValueDefinition interface.
Since:
5.0
Author:
O. Kerpershoek
  • Constructor Details

    • AttributeDelegate

      public AttributeDelegate(IAttributeDefinition definition)
      Constructs the attribute delegate for the specified attribute definition.
      Parameters:
      definition - The attribute definition for which the delegate should be constructed.
  • Method Details

    • getType

      public DataType getType()
      Description copied from interface: IValueDefinition
      This method returns the data type of the value.
      Specified by:
      getType in interface IValueDefinition
      Returns:
      the data type of the value.
    • getTypeName

      public String 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 interface IValueDefinition
      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 interface IValueDefinition
      Returns:
      a boolean indicating if the value is a list type.
    • getDomain

      public IPrimitiveValue[] 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 interface IValueDefinition
      Returns:
      Array containing the allowed values.
    • toString

      public String toString()
      Overrides:
      toString in class Object