public abstract class MetadataRedaction extends Redaction
Represents a base abstract class for document metadata redactions.
Learn more
| Modifier | Constructor and Description |
|---|---|
protected |
MetadataRedaction(int filter)
Initializes a new instance of MetadataRedaction class.
|
| Modifier and Type | Method and Description |
|---|---|
protected List<MetadataItem> |
applyFilter(MetadataCollection source)
Applies the current Filter value to a given metadata dictionary.
|
RedactorLogEntry |
applyTo(DocumentFormatInstance formatInstance)
Applies the redaction to a given format instance.
|
protected abstract RedactorLogEntry |
applyTo(MetadataItem item,
IMetadataAccess metadata)
Applies the redaction to a given metadata item.
|
int |
getFilter()
Gets the filter, which is used to select all or specific metadata, for example Author or Company.
|
protected abstract boolean |
isApplicableTo(MetadataItem item)
Checks if this redaction could be applied to a given metadata item.
|
void |
setFilter(int value)
Sets the filter, which is used to select all or specific metadata, for example Author or Company.
|
getDescriptionprotected MetadataRedaction(int filter)
Initializes a new instance of MetadataRedaction class. This constructor requires MetadataFilters as a parameter.
filter - Flags enumeration MetadataFiltersprotected final List<MetadataItem> applyFilter(MetadataCollection source)
Applies the current Filter value to a given metadata dictionary.
source - Collection of the document's metadatapublic RedactorLogEntry applyTo(DocumentFormatInstance formatInstance)
Applies the redaction to a given format instance.
protected abstract RedactorLogEntry applyTo(MetadataItem item, IMetadataAccess metadata)
Applies the redaction to a given metadata item.
item - Metadata itemmetadata - Metadata accesspublic final int getFilter()
Gets the filter, which is used to select all or specific metadata, for example Author or Company.
protected abstract boolean isApplicableTo(MetadataItem item)
Checks if this redaction could be applied to a given metadata item.
item - Metadata itempublic final void setFilter(int value)
Sets the filter, which is used to select all or specific metadata, for example Author or Company.
value - The filter, which is used to select all or specific metadata, for example Author or Company.Copyright © 2025. All rights reserved.