Annotation Interface Fragment


@Retention(RUNTIME) @Target(FIELD) public @interface Fragment
Define a fragment of a record. Used to indicate the length of the field in a line of data.
Author:
Guillaume CHAUVET
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    Define ways for padding
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    int
    The field length
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The padding way to apply
    An optional argument
    boolean
    Allow unparesable/no value
    char
    The default padding character
  • Element Details

    • length

      int length
      The field length
      Returns:
      a positive number corresponding to field length
    • padder

      char padder
      The default padding character
      Returns:
      the padding character, with space as default
      Default:
      ' '
    • format

      String format
      An optional argument
      Returns:
      optional format argument passed to the TypeHandler
      Default:
      ""
    • alignement

      Fragment.PadWay alignement
      The padding way to apply
      Returns:
      padding way constant enum
      Default:
      NONE
    • optional

      boolean optional
      Allow unparesable/no value
      Returns:
      true> if optional
      Default:
      false