public class MetadataItem extends Object
Represents an item of metadata, common for all supported formats and used in metadata redactions.
Constructor and Description |
---|
MetadataItem()
Initializes a new instance.
|
Modifier and Type | Method and Description |
---|---|
MetadataItem |
createClone()
Creates a deep clone of current instance.
|
String |
getActualValue()
Gets the string representation of the metadata item value.
|
String |
getCategory()
Gets a category of the metadata item, for example resource ID for an embedded resource metadata item.
|
String |
getDictionaryKey()
Gets a dictionary key for , using its OriginalName and other data.
|
int |
getFilter()
Gets a value of
MetadataFilters , assigned to this metadata item which is used in item filtration. |
String |
getOriginalName()
Gets an original name of the metadata item, as it appears in the document.
|
List<String> |
getValues()
Gets the metadata item value.
|
boolean |
isCustom()
Gets a value indicating whether this item is custom (added by the authors of the document).
|
void |
setCategory(String value)
Sets a category of the metadata item, for example resource ID for an embedded resource metadata item.
|
void |
setCustom(boolean value)
Sets a value indicating whether this item is custom (added by the authors of the document).
|
void |
setFilter(int value)
Sets a value of
MetadataFilters , assigned to this metadata item which is used in item filtration. |
void |
setOriginalName(String value)
Sets an original name of the metadata item, as it appears in the document.
|
void |
setValues(List<String> value)
Sets the metadata item value.
|
public final String getOriginalName()
Gets an original name of the metadata item, as it appears in the document.
public final void setOriginalName(String value)
Sets an original name of the metadata item, as it appears in the document.
value
- An original name of the metadata item, as it appears in the document.public final String getCategory()
Gets a category of the metadata item, for example resource ID for an embedded resource metadata item.
public final void setCategory(String value)
Sets a category of the metadata item, for example resource ID for an embedded resource metadata item.
value
- A category of the metadata item, for example resource ID for an embedded resource metadata item.public final int getFilter()
Gets a value of MetadataFilters
, assigned to this metadata item which is used in item filtration.
MetadataFilters
, assigned to this metadata item which is used in item filtration.public final void setFilter(int value)
Sets a value of MetadataFilters
, assigned to this metadata item which is used in item filtration.
value
- A value of MetadataFilters
, assigned to this metadata item which is used in item filtration.public final List<String> getValues()
Gets the metadata item value.
public final void setValues(List<String> value)
Sets the metadata item value.
value
- The metadata item value.public final boolean isCustom()
Gets a value indicating whether this item is custom (added by the authors of the document).
public final void setCustom(boolean value)
Sets a value indicating whether this item is custom (added by the authors of the document).
value
- A value indicating whether this item is custom (added by the authors of the document).public String getDictionaryKey()
Gets a dictionary key for , using its OriginalName and other data.
public MetadataItem createClone()
Creates a deep clone of current instance.
public final String getActualValue()
Gets the string representation of the metadata item value.
Copyright © 2021. All rights reserved.