public class FieldEnumSelector extends FieldSet<java.lang.Enum> implements FieldSelector
toString() output of the enumeration value will be used to match name of the fields.FieldSelector,
FieldSet| Modifier and Type | Field and Description |
|---|---|
private FieldNameSelector |
names |
| Constructor and Description |
|---|
FieldEnumSelector() |
| Modifier and Type | Method and Description |
|---|---|
FieldEnumSelector |
clone()
Clones this field selector.
|
int |
getFieldIndex(java.lang.Enum column)
Returns the position of a given column represented by an enumeration value.
|
int[] |
getFieldIndexes(NormalizedString[] headers)
Returns the indexes of any selected fields that are part of a sequence of headers.
|
int[] |
getFieldIndexes(java.lang.String[] headers)
Returns the indexes of any selected fields that are part of a sequence of headers.
|
add, add, describe, get, remove, remove, set, set, toStringequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdescribeprivate FieldNameSelector names
public int getFieldIndex(java.lang.Enum column)
column - the column whose position will be returnedpublic int[] getFieldIndexes(NormalizedString[] headers)
FieldSelectorgetFieldIndexes in interface FieldSelectorheaders - the sequence of headers that might have some elements selected by this FieldSelectorpublic FieldEnumSelector clone()
FieldSelectorclone in interface FieldSelectorclone in class FieldSet<java.lang.Enum>public int[] getFieldIndexes(java.lang.String[] headers)
FieldSelectorgetFieldIndexes in interface FieldSelectorheaders - the sequence of headers that might have some elements selected by this FieldSelector