public class KeyNameMapperImpl extends Object implements KeyNameMapper
| Constructor and Description |
|---|
KeyNameMapperImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMappedField(Integer index,
String field) |
Integer |
addMappedField(String field) |
KeyNameMapper |
clone()
Clones the key name mapper
|
static KeyNameMapperImpl |
create(KeyFactory[] keyFactories) |
String |
getFieldForIndex(Integer index)
Gets the field for the index
|
Set<String> |
getFieldSet()
Gets a set of fields mapper
|
int |
getIndexForField(String field)
Gets the index used for the given field
|
Map<Integer,String> |
getMappings()
Provides a Map containing the index to field mappings
|
int |
getValueMarker() |
boolean |
isFullyMapped(Key mappedKey) |
boolean |
isMapped(String field)
Check if a field is mapped
|
void |
setValueMarker(int index) |
int |
size()
The amount of mapped fields
|
String |
toString() |
public static KeyNameMapperImpl create(KeyFactory[] keyFactories)
public int getIndexForField(String field)
KeyNameMappergetIndexForField in interface KeyNameMapperfield - The field to request the mapped index forpublic Map<Integer,String> getMappings()
KeyNameMappergetMappings in interface KeyNameMapperpublic boolean isMapped(String field)
KeyNameMapperisMapped in interface KeyNameMapperfield - The field to check if it is mappedpublic int size()
KeyNameMappersize in interface KeyNameMapperpublic String getFieldForIndex(Integer index)
KeyNameMappergetFieldForIndex in interface KeyNameMapperindex - The index to get the field name forpublic Integer addMappedField(String field)
addMappedField in interface KeyNameMapperpublic Set<String> getFieldSet()
KeyNameMappergetFieldSet in interface KeyNameMapperpublic boolean isFullyMapped(Key mappedKey)
isFullyMapped in interface KeyNameMapperpublic int getValueMarker()
getValueMarker in interface KeyNameMapperpublic void setValueMarker(int index)
setValueMarker in interface KeyNameMapperpublic KeyNameMapper clone()
KeyNameMapperclone in interface KeyNameMapperclone in class ObjectCopyright © 2015. All rights reserved.