Top Description Methods
com.opencsv.bean

public @Interface CsvIgnore

extends Annotation
Annotations
@Documented
@Retention:RUNTIME
@Target:FIELD
Imports
org.apache.commons.collections4.MultiValuedMap, java.lang.annotation.*

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.

Author
Andrew Rucker Jones
Since
5.0
See Also
MappingStrategy#ignoreFields(MultiValuedMap)

Method Summary

Modifier and TypeMethod and Description
public String[]

Returns:

The profiles for which this field should be ignored
profiles
()

The names of the profiles for which this field should be ignored.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

profilesback to summary
public 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:String[]

The profiles for which this field should be ignored

Since
5.4