Class NullValidator

  • All Implemented Interfaces:

    public class NullValidator
    extends java.lang.Object
    implements Validator
    A validator that does nothing.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static NullValidator of()
      Return the instance of NullValidator.
      boolean validate​(java.lang.String name, java.lang.Object value)
      Validates the configuration value.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • of

        public static NullValidator of()
        Return the instance of NullValidator.
        the instance of NullValidator.
      • validate

        public boolean validate​(java.lang.String name,
                                java.lang.Object value)
        Description copied from interface: Validator
        Validates the configuration value.
        Specified by:
        validate in interface Validator
        name - name of the configuration setting
        value - value of the configuration setting
        true if it is a valid value, otherwise false.