NumericCondition
Evaluates to true when a document field value satisfies a numeric comparison.
Notes
Evaluates to true when a matching document field contains a numeric value that satisfies a comparison or falls within a specified numeric range. Supports operators such as greater than, less than, or equals.
Usage
- YAML
- JSON
- XML
class: NumericCondition
fieldMatcher:
ignoreCase: false
ignoreDiacritic: false
matchEmpty: false
method: BASIC
negateMatches: false
partial: false
pattern: string
replaceAll: false
trim: false
label: string
valueMatcher:
number: 0
operator: gt
valueMatcherRangeEnd:
number: 0
operator: gt
{
"class": "NumericCondition",
"fieldMatcher": {
"ignoreCase": false,
"ignoreDiacritic": false,
"matchEmpty": false,
"method": "BASIC",
"negateMatches": false,
"partial": false,
"pattern": "string",
"replaceAll": false,
"trim": false
},
"label": "string",
"valueMatcher": {
"number": 0,
"operator": "gt"
},
"valueMatcherRangeEnd": {
"number": 0,
"operator": "gt"
}
}
<condition>
<class>NumericCondition</class>
<fieldMatcher>
<ignoreCase>false</ignoreCase>
<ignoreDiacritic>false</ignoreDiacritic>
<matchEmpty>false</matchEmpty>
<method>BASIC</method>
<negateMatches>false</negateMatches>
<partial>false</partial>
<pattern>string</pattern>
<replaceAll>false</replaceAll>
<trim>false</trim>
</fieldMatcher>
<label>string</label>
<valueMatcher>
<number>0</number>
<operator>gt</operator>
</valueMatcher>
<valueMatcherRangeEnd>
<number>0</number>
<operator>gt</operator>
</valueMatcherRangeEnd>
</condition>
Properties
| Property | Type | Required | Default |
|---|---|---|---|
fieldMatcher | TextMatcher | No | TextMatcher |
label | string | No | - |
valueMatcher | NumericValueMatcher | No | - |
valueMatcherRangeEnd | NumericValueMatcher | No | - |
Property Details
fieldMatcher
Matches document fields based on specified patterns and methods. Use this to restrict the handler to operate only on fields whose names satisfy the matcher criteria.
label
An optional, user-supplied label for this step in the importer pipeline. It has no effect on processing — it exists purely to help identify this step, for example in large configurations or in the visual configurator.
valueMatcher
Matches document field values based on specified patterns and methods. Use this to restrict the handler to operate only on fields whose values satisfy the matcher criteria.
valueMatcherRangeEnd
The upper boundary of the value range for range-based matching.