ContentTypeCondition
Evaluates to true when a document's content type matches a configured text expression.
Notes
Evaluates to true when a document's content type (without its character set, for example text/html) matches a
configured text expression. A document with no known content type meets it. Several handlers use it as the default of
their when property, so they apply to the content types they
are made for: replace when to change that.
Usage
- YAML
- JSON
- XML
class: ContentTypeCondition
label: string
valueMatcher:
ignoreCase: false
ignoreDiacritic: false
matchEmpty: false
method: BASIC
negateMatches: false
partial: false
pattern: string
replaceAll: false
trim: false
{
"class": "ContentTypeCondition",
"label": "string",
"valueMatcher": {
"ignoreCase": false,
"ignoreDiacritic": false,
"matchEmpty": false,
"method": "BASIC",
"negateMatches": false,
"partial": false,
"pattern": "string",
"replaceAll": false,
"trim": false
}
}
<contentTypeCondition>
<class>ContentTypeCondition</class>
<label>string</label>
<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>
</contentTypeCondition>
Properties
| Property | Type | Required | Default |
|---|---|---|---|
label | string | No | - |
valueMatcher | TextMatcher | No | TextMatcher |
Property Details
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 the document content type based on specified patterns and methods.