Class ValueType

java.lang.Object
com.aquima.interactions.rule.ValueType

public class ValueType extends Object
This class is used to identify the type an inference rule will return for the attribute it inferences a value for.
Since:
6.1
Author:
O. Kerpershoek
  • Constructor Details

    • ValueType

      public ValueType(DataType type, boolean multivalue)
      Constructs the class with the required parameters. This constructor should be used for non-entity target attributes.
      Parameters:
      type - The data type of the value.
      multivalue - Boolean indicating if the value is a list.
    • ValueType

      public ValueType(DataType type, boolean multivalue, String entityType)
      Constructs the class with the required parameters. This constructor should be used for entity target attributes.
      Parameters:
      type - The data type of the value.
      multivalue - Boolean indicating if the value is a list.
      entityType - The name of the entity of the value.
  • Method Details

    • getDataType

      public DataType getDataType()
      This method returns the data type for the value.
      Returns:
      the data type for the value.
    • isMultivalue

      public boolean isMultivalue()
      This method returns a boolean indicating if the value is a list.
      Returns:
      a boolean indicating if the value is a list.
    • getEntityType

      public String getEntityType()
      This method returns the entity type of the value.
      Returns:
      the entity type of the value.
    • toString

      public String toString()
      Overrides:
      toString in class Object