Top Description Fields Constructors Methods
com.univocity.parsers.common.fields

public Class ExcludeFieldEnumSelector

extends FieldSet<Enum<E extends Enum<E>>>
implements FieldSelector
Class Inheritance
All Implemented Interfaces
com.univocity.parsers.common.fields.FieldSelector, java.lang.Cloneable
Annotations
@SuppressWarnings:rawtypes
Imports
com.univocity.parsers.common.*

A FieldSelector capable of deselecting fields in a record.

This selector stores undesired fields, represented by values of an enumeration, and will return the indexes of those fields that are not part of the selection.

Author
Univocity Software Pty Ltd - [email protected]
See Also
FieldSelector, FieldSet

Field Summary

Modifier and TypeField and Description
private ExcludeFieldNameSelector

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ExcludeFieldEnumSelector
public String
describe()

Overrides com.univocity.parsers.common.fields.FieldSet.describe.

Implements com.univocity.parsers.common.fields.FieldSelector.describe.

Returns a string that represents the current field selection
public int[]

Returns:

the positions of all elements which were not selected.
getFieldIndexes
(NormalizedString[]
the sequence of headers that might have some elements selected by this FieldSelector
headers
)

Implements com.univocity.parsers.common.fields.FieldSelector.getFieldIndexes.

Returns the indexes of any that are part of a sequence of headers but not part of the selection.
public int[]
getFieldIndexes(String[]
the sequence of headers that might have some elements selected by this FieldSelector
headers
)

Implements com.univocity.parsers.common.fields.FieldSelector.getFieldIndexes.

Returns the indexes of any selected fields that are part of a sequence of headers.
Inherited from com.univocity.parsers.common.fields.FieldSet:
addaddgetremoveremovesetsettoString

Field Detail

namesback to summary
private ExcludeFieldNameSelector names

Constructor Detail

ExcludeFieldEnumSelectorback to summary
public ExcludeFieldEnumSelector()

Method Detail

cloneback to summary
public ExcludeFieldEnumSelector clone()

Overrides com.univocity.parsers.common.fields.FieldSet.clone.

Implements com.univocity.parsers.common.fields.FieldSelector.clone.

Doc from com.univocity.parsers.common.fields.FieldSelector.clone.

Clones this field selector. Changes to the selection on the clone won't be reflected on the original

Returns:ExcludeFieldEnumSelector

a copy of the current field selector.

describeback to summary
public String describe()

Overrides com.univocity.parsers.common.fields.FieldSet.describe.

Implements com.univocity.parsers.common.fields.FieldSelector.describe.

Doc from com.univocity.parsers.common.fields.FieldSelector.describe.

Returns a string that represents the current field selection

Returns:String

a string that represents the current field selection

Annotations
@Override
getFieldIndexesback to summary
public int[] getFieldIndexes(NormalizedString[] headers)

Implements com.univocity.parsers.common.fields.FieldSelector.getFieldIndexes.

Returns the indexes of any that are part of a sequence of headers but not part of the selection.

Parameters
headers:NormalizedString[]

the sequence of headers that might have some elements selected by this FieldSelector

Returns:int[]

the positions of all elements which were not selected.

Annotations
@Override
getFieldIndexesback to summary
public int[] getFieldIndexes(String[] headers)

Implements com.univocity.parsers.common.fields.FieldSelector.getFieldIndexes.

Doc from com.univocity.parsers.common.fields.FieldSelector.getFieldIndexes.

Returns the indexes of any selected fields that are part of a sequence of headers.

Parameters
headers:String[]

the sequence of headers that might have some elements selected by this FieldSelector

Returns:int[]

the positions of all selected elements in the given headers sequence.

Annotations
@Override