Annotation Interface Parameter


@Retention(SOURCE) @Target(PARAMETER) public @interface Parameter
Specifies behaviour for a parameter of the "execute" method of a template class.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Indicates the default value, as it will be written in Java code.
    Returns the name of the exported property name.
    boolean
    Indicates that this parameter is required.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Indicates to use the parameter name itself for the exported name.
  • Field Details

    • SAME_NAME

      static final String SAME_NAME
      Indicates to use the parameter name itself for the exported name.
      See Also:
  • Element Details

    • name

      String name
      Returns the name of the exported property name.
      Default:
      "USE THE SAME NAME"
    • required

      boolean required
      Indicates that this parameter is required.
      Default:
      false
    • defaultValue

      String defaultValue
      Indicates the default value, as it will be written in Java code.
      Default:
      "null"