Package de.cxp.ocs.conf.converter
Class SplitValueConfiguration
- java.lang.Object
-
- de.cxp.ocs.conf.converter.SplitValueConfiguration
-
- All Implemented Interfaces:
ConfigureableField
public class SplitValueConfiguration extends Object implements ConfigureableField
ConfigureableFieldimplementations that holds all information needed by theSplitValueDataProcessor. The configuration allows:configuration: SplitValueDataProcessor: FieldName: ColorMapping ColorMapping_keepOriginal: true ColorMapping_regEx: /::/ ColorMapping_idxToDest: 0:Hauptfarbe;1:Nebenfarbe #Optionally a wildcard index can be supplied if the index count is not predictable when splitting a value. #In this case only one value is allowed and must be -1. For every splitted value a record entry #in form: value_idxOfSplitted value will be added. E.g.: ColorMapping_idxToDest: -1:Hauptfarbe # This would add Hauptfarbe_0, Hauptfarbe_1, Hauptfarbe_3 for on a value foo/::/bar/::/baz
-
-
Field Summary
Fields Modifier and Type Field Description static StringENTRY_SEPARATORstatic StringFIELD_NAMEstatic StringIDX_TO_DEST_FIELD_CONFstatic StringIDX_TO_DEST_SEPARATORstatic StringKEEP_ORIG_CONFstatic StringREG_EX_CONFstatic intWILDCARD_IDX
-
Constructor Summary
Constructors Constructor Description SplitValueConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SplitValueConfigurationaddIndexToDestinationFieldName(int idx, String destinationFieldName)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.cxp.ocs.conf.converter.ConfigureableField
getFieldName
-
-
-
-
Field Detail
-
WILDCARD_IDX
public static final int WILDCARD_IDX
- See Also:
- Constant Field Values
-
IDX_TO_DEST_SEPARATOR
public static final String IDX_TO_DEST_SEPARATOR
- See Also:
- Constant Field Values
-
ENTRY_SEPARATOR
public static final String ENTRY_SEPARATOR
- See Also:
- Constant Field Values
-
FIELD_NAME
public static final String FIELD_NAME
- See Also:
- Constant Field Values
-
IDX_TO_DEST_FIELD_CONF
public static final String IDX_TO_DEST_FIELD_CONF
- See Also:
- Constant Field Values
-
REG_EX_CONF
public static final String REG_EX_CONF
- See Also:
- Constant Field Values
-
KEEP_ORIG_CONF
public static final String KEEP_ORIG_CONF
- See Also:
- Constant Field Values
-
-
Method Detail
-
addIndexToDestinationFieldName
public SplitValueConfiguration addIndexToDestinationFieldName(int idx, String destinationFieldName)
-
-