Class RequirementType

java.lang.Object
com.aquima.interactions.matching.RequirementType

public final class RequirementType extends Object
The requirement class is an enumerated type class that defines which values need to be available in order to be able to match an attribute.
Since:
6.2
Author:
O. Kerpershoek, F. van der Meer
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    This class defines the numeric ID's of the various requirement types.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final RequirementType
    This member defines the BOTH requirement type, that is used to indicate that both the profile and the case value must be available in order to be able to match.
    static final RequirementType
    This member defines the CASE requirement type, that is used to indicate that the case must have a value in order to be matched.
    static final RequirementType
    This member defines the EITHER requirement type, that is used to indicate that either the profile or the case value needs to be available in order to be able to match.
    static final RequirementType
    This member defines the PROFILE requirement type, that is used to indicate that the profile must have a value in order to be matched.
  • Method Summary

    Modifier and Type
    Method
    Description
    This method returns an array containing all the supported requirement types.
    int
    This method returns the ID of the requirement type.
    This method returns the name of the requirement type.
     
    valueOf(int requirementId)
    This method returns the requirement type matching the specified ID.
    valueOf(String requirementName)
    This method returns the requirement type matching the specified name.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • PROFILE

      public static final RequirementType PROFILE
      This member defines the PROFILE requirement type, that is used to indicate that the profile must have a value in order to be matched.
    • CASE

      public static final RequirementType CASE
      This member defines the CASE requirement type, that is used to indicate that the case must have a value in order to be matched.
    • BOTH

      public static final RequirementType BOTH
      This member defines the BOTH requirement type, that is used to indicate that both the profile and the case value must be available in order to be able to match.
    • EITHER

      public static final RequirementType EITHER
      This member defines the EITHER requirement type, that is used to indicate that either the profile or the case value needs to be available in order to be able to match.
  • Method Details

    • getAll

      public static RequirementType[] getAll()
      This method returns an array containing all the supported requirement types.
      Returns:
      an array containing all the supported requirement types.
    • valueOf

      public static RequirementType valueOf(int requirementId)
      This method returns the requirement type matching the specified ID.
      Parameters:
      requirementId - The ID for which the requirement type is requested.
      Returns:
      The requirement type matching the specified ID.
    • valueOf

      public static RequirementType valueOf(String requirementName)
      This method returns the requirement type matching the specified name.
      Parameters:
      requirementName - The name for which the requirement type is requested.
      Returns:
      The requirement type matching the specified name.
    • getId

      public int getId()
      This method returns the ID of the requirement type.
      Returns:
      the ID of the requirement type.
    • getName

      public String getName()
      This method returns the name of the requirement type.
      Returns:
      the name of the requirement type.
    • toString

      public String toString()
      Overrides:
      toString in class Object