Annotation Type CsvIgnore


  • @Documented
    @Retention(RUNTIME)
    @Target(FIELD)
    public @interface CsvIgnore
    Instructs opencsv to ignore a field and any annotations present.

    It is for the mapping strategy in use as if the field were simply not a part of the bean class. This affects only the functioning of the mapping strategy, but not the selection of the mapping strategy if this is done automatically by opencsv.

    Since:
    5.0
    See Also:
    MappingStrategy.ignoreFields(MultiValuedMap)
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String[] profiles
      The names of the profiles for which this field should be ignored.
    • Element Detail

      • profiles

        java.lang.String[] profiles
        The names of the profiles for which this field should be ignored.

        If the field should be ignored for only some profiles, but not all, list the profiles that should ignore the field here.

        The default value is an empty string, which means all profiles.

        Returns:
        The profiles for which this field should be ignored
        Since:
        5.4
        Default:
        {""}