Class NullValidator

  • All Implemented Interfaces:
    Validator

    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.
        Returns:
        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
        Parameters:
        name - name of the configuration setting
        value - value of the configuration setting
        Returns:
        true if it is a valid value, otherwise false.