Annotation Type Message

    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      String key  
      String value
      This value has higher priority over a message template specified in a localized file, and it's considered a good practice to specify it.
      • ELEMENT_NAME

        static final String ELEMENT_NAME
        Constant value for key() indicating that the annotated element's name should be used as-is.
      • DEFAULT_VALUE

        static final String DEFAULT_VALUE
        Constant value for value() indicating that message template value specified in a localized file should be used. If localized file fails to provide value, an exception is thrown and the build fails.
      • HYPHENATED_ELEMENT_NAME

        static final String HYPHENATED_ELEMENT_NAME
        Constant value for key() indicating that the annotated element's name should be de-camel-cased and hyphenated, and then used.
      • UNDERSCORED_ELEMENT_NAME

        static final String UNDERSCORED_ELEMENT_NAME
        Constant value forkey() indicating that the annotated element's name should be de-camel-cased and parts separated by underscores, and then used.
    • Element Detail

      • key

        String key
        Returns:
        the key
        Default:
        "<<default>>"
      • value

        String value
        This value has higher priority over a message template specified in a localized file, and it's considered a good practice to specify it. In case the value is not provided and there is no match in the localized file too, the build fails.
        Returns:
        the message template
        Default:
        "<<default value>>"