Package com.aquima.interactions.rule
Class RuleType
java.lang.Object
com.aquima.interactions.rule.RuleType
- All Implemented Interfaces:
Serializable
This class holds the static definitions of the supported business rule types.
- Since:
- 5.0
- Author:
- O. Kerpershoek
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
This interface holds the numeric id's of the business rule types. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
getId()
This method returns the numeric id of the business rule type.getName()
This method returns the unique name of the business rule type.static String
getTypeNameOf
(IBusinessRule rule) This method return the detailed rule type name of a business rule.int
hashCode()
toString()
static RuleType
This method returns the rule type for the specified name.
-
Field Details
-
CONSTRAINT
The static definition of the constraint business rule type. -
SOURCE
The static definition of the value-source business rule type. -
VALIDATION
The static definition of the validation business rule type.
-
-
Method Details
-
getTypeNameOf
This method return the detailed rule type name of a business rule. The type name is mainly used by the error-code to provide a detailed specification of what type of rule the error or warning originated from.NOTE: The type name returned by this method is not identical to the name used in the RuleType class.
- Parameters:
rule
- The rule of which the type name should be determined.- Returns:
- The type name of the rule.
-
valueOf
This method returns the rule type for the specified name.- Parameters:
name
- The name of the requested rule type, valid values are "Constraint", "ValueSource" or "Validation"- Returns:
- The rule type for the specified name.
-
getId
public int getId()This method returns the numeric id of the business rule type.- Returns:
- the numeric id of the business rule type.
-
getName
This method returns the unique name of the business rule type.- Returns:
- the unique name of the business rule type.
-
equals
-
hashCode
public int hashCode() -
toString
-