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

public Class ExcludeFieldNameSelector

extends FieldSet<String>
implements FieldSelector, Cloneable
Class Inheritance
All Implemented Interfaces
java.lang.Cloneable, com.univocity.parsers.common.fields.FieldSelector
Imports
com.univocity.parsers.common.*, java.util.*

A FieldSelector capable of deselecting fields by their name in a record.

This selector stores undesired fields 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

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
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:
addaddclonegetremoveremovesetsettoString

Constructor Detail

ExcludeFieldNameSelectorback to summary
public ExcludeFieldNameSelector()

Method Detail

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