Package com.aquima.interactions.matching
Class RequirementType
java.lang.Object
com.aquima.interactions.matching.RequirementType
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 ClassesModifier and TypeClassDescriptionstatic final class
This class defines the numeric ID's of the various requirement types. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic 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 TypeMethodDescriptionstatic RequirementType[]
getAll()
This method returns an array containing all the supported requirement types.int
getId()
This method returns the ID of the requirement type.getName()
This method returns the name of the requirement type.toString()
static RequirementType
valueOf
(int requirementId) This method returns the requirement type matching the specified ID.static RequirementType
This method returns the requirement type matching the specified name.
-
Field Details
-
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
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
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
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
This method returns an array containing all the supported requirement types.- Returns:
- an array containing all the supported requirement types.
-
valueOf
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
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
This method returns the name of the requirement type.- Returns:
- the name of the requirement type.
-
toString
-