public final class MetadataCollection extends Object
Provides the metadata for a document.
Setting the value to the metadata:
metadataCollection.set_Item("CONTENT_TYPE", "application/word");
Getting the value from the metadata:
String author = metadataCollection.get_Item(MetadataNames.AUTHOR);
Getting all metadata's keys:
Constructor and Description |
---|
MetadataCollection()
Initializes a new instance of the
MetadataCollection class. |
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(String key)
Determines whether the
MetadataCollection contains the specified key. |
String |
get_Item(String key)
Gets a value associated with the specified key.
|
List<String> |
getKeys()
Gets a collection containing the keys in the
MetadataCollection . |
boolean |
isEmpty()
Gets a value indicating whether the metadata has data.
|
void |
set_Item(String key,
String value)
Sets a value associated with the specified key.
|
public MetadataCollection()
Initializes a new instance of the MetadataCollection
class.
public boolean isEmpty()
Gets a value indicating whether the metadata has data.
public List<String> getKeys()
Gets a collection containing the keys in the MetadataCollection
.
MetadataCollection
.public String get_Item(String key)
Gets a value associated with the specified key.
key
- The key of the value to get or set.public void set_Item(String key, String value)
Sets a value associated with the specified key.
value
- The value associated with the specified key. If the specified key is not found,
a get operation returns null. A set operation creates a new element with the specified key.key
- The key of the value to get or set.public boolean containsKey(String key)
Determines whether the MetadataCollection
contains the specified key.
key
- The key to locate in the MetadataCollection
.Copyright © 2018. All rights reserved.