Modifier and Type | Method and Description |
---|---|
NormalizedString |
FieldMapping.getFieldName()
Returns the column name against which this field is mapped.
|
Modifier and Type | Method and Description |
---|---|
void |
FieldMapping.setFieldName(NormalizedString fieldName)
Defines the column name against which this field is mapped, overriding any current name derived from
annotations or from the attribute name itself.
|
Constructor and Description |
---|
FieldMapping(Class<?> beanClass,
AnnotatedElement target,
PropertyWrapper property,
HeaderTransformer transformer,
NormalizedString[] headers)
Creates the mapping and identifies how it is mapped (by name or by index)
|
Modifier and Type | Field and Description |
---|---|
static NormalizedString[] |
ArgumentUtils.EMPTY_NORMALIZED_STRING_ARRAY |
protected NormalizedString[] |
AbstractWriter.headers |
Modifier and Type | Method and Description |
---|---|
NormalizedString[] |
ParserOutput.getHeaders()
Returns the sequence of values that represent the headers each field in the input.
|
static NormalizedString |
NormalizedString.literalValueOf(String string)
Creates a literal
NormalizedString , meaning it will only match with
other String or NormalizedString if they have the exact same content
including character case and surrounding whitespaces. |
static NormalizedString[] |
NormalizedString.toArray(Collection<String> args)
Converts a collection of plain strings into an array of
NormalizedString |
static NormalizedString[] |
NormalizedString.toArray(String... args)
Converts multiple plain strings into an array of
NormalizedString . |
static NormalizedString[] |
NormalizedString.toIdentifierGroupArray(NormalizedString[] strings)
Analyzes a group of NormalizedString to identify any instances whose normalized content will generate
clashes.
|
static NormalizedString[] |
NormalizedString.toIdentifierGroupArray(String[] strings)
Analyzes a group of String to identify any instances whose normalized content will generate
clashes.
|
NormalizedString |
NormalizedString.toLiteral()
Returns the literal representation of this
NormalizedString , meaning it will only match with
other String or NormalizedString if they have the exact same content
including character case and surrounding whitespaces. |
static NormalizedString[] |
NormalizedString.toUniqueArray(String... args)
Converts multiple plain strings into an array of
NormalizedString , ensuring
no duplicate NormalizedString elements exist, even if their original String s
are different. |
static NormalizedString |
NormalizedString.valueOf(Object o)
Creates a non-literal
NormalizedString , meaning it will match with
other String or NormalizedString regardless of different
including character case and surrounding whitespaces. |
static NormalizedString |
NormalizedString.valueOf(String string)
Creates a non-literal
NormalizedString , meaning it will match with
other String or NormalizedString regardless of different
including character case and surrounding whitespaces. |
Modifier and Type | Method and Description |
---|---|
static StringCache<NormalizedString> |
NormalizedString.getCache()
Returns the internal string cache to allow users to tweak its size limit or clear it when appropriate
|
static ArrayList<NormalizedString> |
NormalizedString.toArrayList(Collection<String> args)
Converts multiple plain strings into an
ArrayList of NormalizedString . |
static ArrayList<NormalizedString> |
NormalizedString.toArrayList(String... args)
Converts multiple plain strings into an
ArrayList of NormalizedString . |
static HashSet<NormalizedString> |
NormalizedString.toHashSet(Collection<String> args)
Converts multiple plain strings into a
HashSet of NormalizedString . |
static HashSet<NormalizedString> |
NormalizedString.toHashSet(String... args)
Converts multiple plain strings into a
HashSet of NormalizedString . |
static LinkedHashSet<NormalizedString> |
NormalizedString.toLinkedHashSet(Collection<String> args)
Converts multiple plain strings into a
LinkedHashSet of NormalizedString . |
static LinkedHashSet<NormalizedString> |
NormalizedString.toLinkedHashSet(String... args)
Converts multiple plain strings into a
LinkedHashSet of NormalizedString . |
static TreeSet<NormalizedString> |
NormalizedString.toTreeSet(Collection<String> args)
Converts multiple plain strings into a
TreeSet of NormalizedString . |
static TreeSet<NormalizedString> |
NormalizedString.toTreeSet(String... args)
Converts multiple plain strings into a
TreeSet of NormalizedString . |
Modifier and Type | Method and Description |
---|---|
int |
NormalizedString.compareTo(NormalizedString o) |
static boolean |
NormalizedString.identifyLiterals(NormalizedString[] strings)
Analyzes a group of NormalizedString to identify any instances whose normalized content will generate
clashes.
|
static boolean |
NormalizedString.identifyLiterals(NormalizedString[] strings,
boolean lowercaseIdentifiers,
boolean uppercaseIdentifiers)
Analyzes a group of NormalizedString to identify any instances whose normalized content will generate
clashes.
|
static int |
ArgumentUtils.indexOf(NormalizedString[] array,
NormalizedString element,
FieldSelector fieldSelector)
Returns the index of a header, when headers are selected using a
FieldSelector . |
static int |
ArgumentUtils.indexOf(NormalizedString[] array,
NormalizedString element,
FieldSelector fieldSelector)
Returns the index of a header, when headers are selected using a
FieldSelector . |
boolean |
DefaultConversionProcessor.reverseConversions(boolean executeInReverseOrder,
Object[] row,
NormalizedString[] headers,
int[] indexesToWrite)
Executes the sequences of reverse conversions defined using
DefaultConversionProcessor.convertFields(Conversion...) , DefaultConversionProcessor.convertIndexes(Conversion...) and DefaultConversionProcessor.convertAll(Conversion...) , for every field in the given row. |
static String[] |
NormalizedString.toArray(NormalizedString... args)
Converts multiple normalized strings into an array of
String . |
static ArrayList<String> |
NormalizedString.toArrayListOfStrings(NormalizedString... args)
Converts multiple normalized strings into a
HashSet of String . |
static HashSet<String> |
NormalizedString.toHashSetOfStrings(NormalizedString... args)
Converts multiple normalized strings into a
HashSet of String . |
static NormalizedString[] |
NormalizedString.toIdentifierGroupArray(NormalizedString[] strings)
Analyzes a group of NormalizedString to identify any instances whose normalized content will generate
clashes.
|
static LinkedHashSet<String> |
NormalizedString.toLinkedHashSetOfStrings(NormalizedString... args)
Converts multiple normalized strings into a
LinkedHashSet of String . |
static TreeSet<String> |
NormalizedString.toTreeSetOfStrings(NormalizedString... args)
Converts multiple normalized strings into a
HashSet of String . |
static String |
NormalizedString.valueOf(NormalizedString string)
Converts a
NormalizedString back to its original String representation |
Modifier and Type | Method and Description |
---|---|
static ArrayList<String> |
NormalizedString.toArrayListOfStrings(Collection<NormalizedString> args)
Converts multiple normalized strings into a
HashSet of String . |
static HashSet<String> |
NormalizedString.toHashSetOfStrings(Collection<NormalizedString> args)
Converts multiple normalized strings into a
HashSet of String . |
static LinkedHashSet<String> |
NormalizedString.toLinkedHashSetOfStrings(Collection<NormalizedString> args)
Converts multiple normalized strings into a
LinkedHashSet of String . |
static String[] |
NormalizedString.toStringArray(Collection<NormalizedString> args)
Converts a collection of normalized strings into an array of
String |
static TreeSet<String> |
NormalizedString.toTreeSetOfStrings(Collection<NormalizedString> args)
Converts multiple normalized strings into a
HashSet of String . |
Modifier and Type | Method and Description |
---|---|
int[] |
FieldSelector.getFieldIndexes(NormalizedString[] headers)
Returns the indexes of any selected fields that are part of a sequence of headers.
|
int[] |
AllIndexesSelector.getFieldIndexes(NormalizedString[] headers) |
int[] |
FieldIndexSelector.getFieldIndexes(NormalizedString[] columns) |
int[] |
ExcludeFieldEnumSelector.getFieldIndexes(NormalizedString[] headers)
Returns the indexes of any that are part of a sequence of headers but not part of the selection.
|
int[] |
FieldEnumSelector.getFieldIndexes(NormalizedString[] headers) |
int[] |
FieldNameSelector.getFieldIndexes(NormalizedString[] headers) |
int[] |
ExcludeFieldIndexSelector.getFieldIndexes(NormalizedString[] columns)
Returns the indexes of any that are part of a sequence of headers but not part of the selection.
|
int[] |
ExcludeFieldNameSelector.getFieldIndexes(NormalizedString[] headers)
Returns the indexes of any that are part of a sequence of headers but not part of the selection.
|
Modifier and Type | Method and Description |
---|---|
protected NormalizedString[] |
RowWriterProcessorSwitch.getHeaders()
Returns the headers in use by the current row writer processor implementation, which can vary among row writer processors.
|
protected NormalizedString[] |
OutputValueSwitch.getHeaders() |
abstract NormalizedString[] |
RowWriterProcessorSwitch.getHeaders(Map headerMapping,
Map mapInput)
Returns the sequence of headers to use for processing an input record represented by a map
A map of headers can be optionally provided to assign a name to the keys of the input map.
|
NormalizedString[] |
OutputValueSwitch.getHeaders(Map headerMapping,
Map mapInput) |
abstract NormalizedString[] |
RowWriterProcessorSwitch.getHeaders(Object input)
Returns the sequence of headers to use for processing an input record.
|
NormalizedString[] |
OutputValueSwitch.getHeaders(Object input) |
Modifier and Type | Method and Description |
---|---|
Object[] |
ObjectRowWriterProcessor.write(Object[] input,
NormalizedString[] headers,
int[] indexesToWrite)
Executes the sequences of conversions defined using
DefaultConversionProcessor.convertFields(Conversion...) , DefaultConversionProcessor.convertIndexes(Conversion...) and DefaultConversionProcessor.convertAll(Conversion...) , for every field in the given row. |
Object[] |
RowWriterProcessorSwitch.write(Object input,
NormalizedString[] headers,
int[] indicesToWrite) |
Object[] |
RowWriterProcessor.write(T input,
NormalizedString[] headers,
int[] indexesToWrite)
Converts the given input into an Object array that is suitable for writing.
|
Object[] |
BeanWriterProcessor.write(T input,
NormalizedString[] headers,
int[] indexesToWrite)
Converts the java bean instance into a sequence of values for writing.
|
Modifier and Type | Method and Description |
---|---|
protected void |
BeanConversionProcessor.initialize(NormalizedString[] headers)
Identifies and extracts fields annotated with the
Parsed annotation |
Object[] |
BeanConversionProcessor.reverseConversions(T bean,
NormalizedString[] headers,
int[] indexesToWrite)
Converts a java bean instance into a sequence of values for writing.
|
Modifier and Type | Method and Description |
---|---|
NormalizedString[] |
FixedWidthFields.getFieldNames()
Returns the name of each field in a fixed-width record, if any
|
Copyright © 2023 Univocity Software Pty Ltd. All rights reserved.