MetadataAllOf
Met when all of its conditions are met.
Notes
A logical AND. Also met when it has no conditions. Groups can be nested.
Examples
Bigger than 1 MB and a PDF:
- YAML
- JSON
- XML
class: MetadataAllOf
conditions:
- class: MetadataNumberCondition
fieldMatcher:
pattern: Content-Length
valueMatcher:
operator: gt
number: 1048576
- class: MetadataTextCondition
fieldMatcher:
pattern: Content-Type
valueMatcher:
pattern: application/pdf
{
"class": "MetadataAllOf",
"conditions": [
{
"class": "MetadataNumberCondition",
"fieldMatcher": {
"pattern": "Content-Length"
},
"valueMatcher": {
"operator": "gt",
"number": 1048576
}
},
{
"class": "MetadataTextCondition",
"fieldMatcher": {
"pattern": "Content-Type"
},
"valueMatcher": {
"pattern": "application/pdf"
}
}
]
}
<class>MetadataAllOf</class>
<conditions>
<class>MetadataNumberCondition</class>
<fieldMatcher>
<pattern>Content-Length</pattern>
</fieldMatcher>
<valueMatcher>
<operator>gt</operator>
<number>1048576</number>
</valueMatcher>
<class>MetadataTextCondition</class>
<fieldMatcher>
<pattern>Content-Type</pattern>
</fieldMatcher>
<valueMatcher>
<pattern>application/pdf</pattern>
</valueMatcher>
</conditions>
Usage
Full configuration skeleton, with every option and its default
- YAML
- JSON
- XML
class: MetadataAllOf
conditions: []
{
"class": "MetadataAllOf",
"conditions": []
}
<condition>
<class>MetadataAllOf</class>
<conditions>
<condition/>
</conditions>
</condition>
Properties
| Property | Type | Required | Default |
|---|---|---|---|
conditions | MetadataCondition[] | No | - |
Property Details
conditions
The conditions that must all be met.