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.
|
getDescription
protected MetadataRedaction(int filter)
Initializes a new instance of MetadataRedaction class. This constructor requires MetadataFilters
as a parameter.
filter
- Flags enumeration MetadataFilters
public final int getFilter()
Gets the filter, which is used to select all or specific metadata, for example Author or Company.
public 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.protected final List<MetadataItem> applyFilter(MetadataCollection source)
Applies the current Filter value to a given metadata dictionary.
source
- Collection of the document's metadataprotected abstract boolean isApplicableTo(MetadataItem item)
Checks if this redaction could be applied to a given metadata item.
item
- Metadata itemprotected abstract RedactorLogEntry applyTo(MetadataItem item, IMetadataAccess metadata)
Applies the redaction to a given metadata item.
item
- Metadata itemmetadata
- Metadata accesspublic RedactorLogEntry applyTo(DocumentFormatInstance formatInstance)
Applies the redaction to a given format instance.