public class IntegerValueMatcher extends java.lang.Object implements MetadataValueMatcher
MetadataValueBranchingService
.
This allows a simple integer comparision to determine the branch that should be used. The key portion of the underlying
MetadataToServiceIdMappings field is a simple expression that follows the following syntax <operator><value>
where valid operators are
20
; if you have both >10 and
>=20 configured in MetadataToServiceIdMappings, then >10
will be the matching expression due to the natural
sort order of the two key values.
The service key created from the associated metadata-keys is used as the left hand side of the expression
In the adapter configuration file this class is aliased as integer-value-matcher which is the preferred alternative to the fully qualified classname when building your configuration.
Constructor and Description |
---|
IntegerValueMatcher() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getNextServiceId(java.lang.String serviceKey,
KeyValuePairBag mappings)
Get the next service id from the mapping.
|
public java.lang.String getNextServiceId(java.lang.String serviceKey, KeyValuePairBag mappings)
MetadataValueMatcher
getNextServiceId
in interface MetadataValueMatcher
serviceKey
- the service key generated from metadatamappings
- the list of mappings from
MetadataValueBranchingService.getMetadataToServiceIdMappings()