Annotation Interface FieldMetadata


@Target(METHOD) @Retention(RUNTIME) public @interface FieldMetadata
This annotation should be attached to getter method which is called from Velocity or Freemarker Otherwise it will have no effect
Author:
rcusnir
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Returns the description of the field.
    Returns the image name if field must use mapping name with image and empty otherwise.
    Returns the syntax kind to use for the field and empty otherwise.
    boolean
    Returns true if field which used syntax kind can have template syntax and false otherwise.
  • Element Details

    • syntaxKind

      String syntaxKind
      Returns the syntax kind to use for the field and empty otherwise.
      Returns:
      the syntax kind to use for the field and empty otherwise.
      Default:
      ""
    • syntaxWithDirective

      boolean syntaxWithDirective
      Returns true if field which used syntax kind can have template syntax and false otherwise.
      Returns:
      true if field which used syntax kind can have template syntax and false otherwise.
      Default:
      false
    • description

      String description
      Returns the description of the field.
      Returns:
      the description of the field.
      Default:
      ""
    • images

      ImageMetadata[] images
      Returns the image name if field must use mapping name with image and empty otherwise.
      Returns:
      the image name if field must use mapping name with image and empty otherwise.
      Default:
      {}