Interface ValidationMessage


public interface ValidationMessage
This interface defines a validation message in Zephyr Scale that has a valid/invalid state, and stores the message and an optional meta info map.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the error message if not valid, null otherwise.
    Returns a map with meta information about the error.
    boolean
    Returns true if it's an error, false otherwise.
  • Method Details

    • isValid

      boolean isValid()
      Returns true if it's an error, false otherwise.
      Returns:
      true if it's an error, false otherwise.
      Since:
      6.9.0
    • getMessage

      String getMessage()
      Returns the error message if not valid, null otherwise.
      Returns:
      the error message if not valid, null otherwise.
      Since:
      6.9.0
    • getMeta

      Map<String,? extends Serializable> getMeta()
      Returns a map with meta information about the error.
      Returns:
      a map with meta information about the error.
      Since:
      6.9.0