MetadataTextCondition
Met when a metadata field has a value matching a text pattern.
Notes
Met when at least one value of at least one field whose name matches fieldMatcher also matches valueMatcher. A field name pattern is required: the document content is never tested.
Examples
- YAML
- JSON
- XML
class: MetadataTextCondition
fieldMatcher:
pattern: Content-Type
valueMatcher:
method: WILDCARD
pattern: application/zip*
{
"class": "MetadataTextCondition",
"fieldMatcher": {
"pattern": "Content-Type"
},
"valueMatcher": {
"method": "WILDCARD",
"pattern": "application/zip*"
}
}
<class>MetadataTextCondition</class>
<fieldMatcher>
<pattern>Content-Type</pattern>
</fieldMatcher>
<valueMatcher>
<method>WILDCARD</method>
<pattern>application/zip*</pattern>
</valueMatcher>
Usage
Full configuration skeleton, with every option and its default
- YAML
- JSON
- XML
class: MetadataTextCondition
fieldMatcher:
ignoreCase: false
ignoreDiacritic: false
matchEmpty: false
method: BASIC
negateMatches: false
partial: false
pattern: string
replaceAll: false
trim: false
valueMatcher:
ignoreCase: false
ignoreDiacritic: false
matchEmpty: false
method: BASIC
negateMatches: false
partial: false
pattern: string
replaceAll: false
trim: false
{
"class": "MetadataTextCondition",
"fieldMatcher": {
"ignoreCase": false,
"ignoreDiacritic": false,
"matchEmpty": false,
"method": "BASIC",
"negateMatches": false,
"partial": false,
"pattern": "string",
"replaceAll": false,
"trim": false
},
"valueMatcher": {
"ignoreCase": false,
"ignoreDiacritic": false,
"matchEmpty": false,
"method": "BASIC",
"negateMatches": false,
"partial": false,
"pattern": "string",
"replaceAll": false,
"trim": false
}
}
<condition>
<class>MetadataTextCondition</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>
<valueMatcher>
<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>
</valueMatcher>
</condition>
Properties
| Property | Type | Required | Default |
|---|---|---|---|
fieldMatcher | TextMatcher | No | TextMatcher |
valueMatcher | TextMatcher | No | TextMatcher |
Property Details
fieldMatcher
Matches metadata field names. Required.
valueMatcher
Matches the values of the fields selected by fieldMatcher.