Package de.cxp.ocs.conf.converter
Class FlagFieldConfiguration
java.lang.Object
de.cxp.ocs.conf.converter.FlagFieldConfiguration
- All Implemented Interfaces:
Iterable<FlagFieldConfiguration.PatternMatch>
public class FlagFieldConfiguration
extends Object
implements Iterable<FlagFieldConfiguration.PatternMatch>
ConfigureableField
implementations that holds all information needed
by the FlagFieldDataProcessor
. The configuration allows:
configuration: FlagFieldDataProcessor: group_1_someSourceFieldName: ".*\\d+.*##foo##bar" group_1_someSourceFieldName_match: 1##0.99##-1 group_1_noMatch: -1 group_1_destination: someDestinationField
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the destination field name if configured, otherwise the field name itself is returned.iterator()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
GROUP_PREFIX
- See Also:
-
GROUP_SEPARATOR
- See Also:
-
SEPARATOR
- See Also:
-
TYPE_CONF
- See Also:
-
TYPE_FIELD
- See Also:
-
FIELD_REGEX
- See Also:
-
FIELD_MATCH
- See Also:
-
FIELD_NO_MATCH
- See Also:
-
FIELD_FLAG_DESTINATION
- See Also:
-
-
Constructor Details
-
FlagFieldConfiguration
public FlagFieldConfiguration(String groupName, Map<String, List<Map.Entry<String, String>>> typeToConfiguration) Crates a new instance.- Parameters:
groupName
- the name of the group the configuration belongs to.typeToConfiguration
- aMap
containing for each typeTYPE_FIELD
andTYPE_CONF
the corresponding field and configuration entries.
-
-
Method Details
-
getDestinationFieldName
Gets the destination field name if configured, otherwise the field name itself is returned.- Returns:
- the destination field name.
-
iterator
- Specified by:
iterator
in interfaceIterable<FlagFieldConfiguration.PatternMatch>
-