-
public final class SimpleRules
A factory of SimpleRules.
-
-
Method Summary
Modifier and Type Method Description static SimpleRule
withCustom(FieldName field, Message customFeature, String description, String errorMessage, boolean distribute)
Creates a SimpleRule with a custom operator. static SimpleRule
withCustom(Message customFeature, String description, String errorMessage, boolean distribute)
Creates a SimpleRule with a custom operator without an associated field. -
-
Method Detail
-
withCustom
static SimpleRule withCustom(FieldName field, Message customFeature, String description, String errorMessage, boolean distribute)
Creates a SimpleRule with a custom operator.
- Parameters:
field
- the target fieldcustomFeature
- the feature message describing the custom operatordescription
- the human-readable text description of the featureerrorMessage
- the error message for the case of violation
-
withCustom
static SimpleRule withCustom(Message customFeature, String description, String errorMessage, boolean distribute)
Creates a SimpleRule with a custom operator without an associated field.
- Parameters:
customFeature
- the feature message describing the custom operatordescription
- the human-readable text description of the featureerrorMessage
- the error message for the case of violation
-
-
-
-