Annotation Type Cell


@Retention(RUNTIME)
@Target({FIELD,METHOD})
public @interface Cell
  • Required Element Summary

    Required Elements
    Modifier and Type Required Element Description
    int columnNumber
    Column number
  • Optional Element Summary

    Optional Elements
    Modifier and Type Optional Element Description
    boolean readIgnore
    If field is ignored while reading
    String regex
    Validation rule based on regular expression can only be used with String cell types
    boolean required
    If field is required
    boolean writeIgnore
    If field is ignored while writing
  • Element Details

    • columnNumber

      int columnNumber
      Column number
      Returns:
      column number
    • required

      boolean required
      If field is required
      Returns:
      required
      Default:
      false
    • readIgnore

      boolean readIgnore
      If field is ignored while reading
      Returns:
      Ignore while reading
      Default:
      false
    • writeIgnore

      boolean writeIgnore
      If field is ignored while writing
      Returns:
      Ignore while writing
      Default:
      false
    • regex

      String regex
      Validation rule based on regular expression can only be used with String cell types
      Returns:
      match rule based on regex
      Default:
      ""