Package 

Class SimpleRules


  • 
    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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 field
        customFeature - the feature message describing the custom operator
        description - the human-readable text description of the feature
        errorMessage - 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 operator
        description - the human-readable text description of the feature
        errorMessage - the error message for the case of violation