Annotation Interface NameValue


@Target(ANNOTATION_TYPE) @Retention(RUNTIME) public @interface NameValue
Name, value pair.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The name.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The value as a class.
    The value as string, will be parsed.
    The values as strings, will be individually parsed.
  • Element Details

    • name

      String name
      The name.
    • value

      String value
      The value as string, will be parsed.
      Default:
      ""
    • values

      String[] values
      The values as strings, will be individually parsed.
      Default:
      {}
    • clazz

      Class<?> clazz
      The value as a class.
      Default:
      java.lang.Object.class