Interface ObjectValidator


public interface ObjectValidator
Interface that must be implemented by the object that want to implements some validation logic
  • Method Summary

    Modifier and Type
    Method
    Description
    Checks if the object passed as parameter is valid or not, according to some application logic
  • Method Details

    • isValid

      String isValid(Object o)
      Checks if the object passed as parameter is valid or not, according to some application logic
      Parameters:
      o - The object that must be validate
      Returns:
      A string that defines if the object is valid or not