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 |
getDictionaryKey()
Gets a dictionary key for , using its OriginalName and other data.
|
int |
getFilter()
Gets a value of
MetadataFilters , assigned to this metadata item. |
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 |
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. |
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 int getFilter()
Gets a value of MetadataFilters
, assigned to this metadata item. Used in items filtration.
MetadataFilters
, assigned to this metadata item. Used in items filtration.public final void setFilter(int value)
Sets a value of MetadataFilters
, assigned to this metadata item. Used in items filtration.
value
- A value of MetadataFilters
, assigned to this metadata item. Used in items 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.