Interface ValidationContext.Message

Enclosing interface:
ValidationContext

public static interface ValidationContext.Message
Represents a message object used in error message interpolation.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the annotation attributes associated with the message.
    Get the lookup key for the message.
    Get the template for the message.
  • Method Details

    • template

      String template()
      Get the template for the message. A lookup will be performed on the configured resource bundles to interpolate the message
      Returns:
      The template for the message
    • attributes

      Map<String,Object> attributes()
      Get the annotation attributes associated with the message.
      Returns:
      The annotation attributes associated with the message
    • lookupkey

      String lookupkey()
      Get the lookup key for the message.
      Returns:
      The template for the message + a unique number for deduplication purposes.