public final class Metadata extends Object implements com.aspose.ms.System.Collections.Generic.IGenericDictionary<String,com.aspose.pdf.engine.data.xmp.XmpValue>
Provides access to XMP metadata stream.
Modifier and Type | Method and Description |
---|---|
void |
addItem(com.aspose.ms.System.Collections.Generic.KeyValuePair<String,com.aspose.pdf.engine.data.xmp.XmpValue> item)
Adds pair with key and value into the dictionary.
|
void |
addItem(String key,
Object value)
Adds value to metadata.
|
void |
addItem(String prefix,
XmpPdfAExtensionObject value)
Adds pdf extension to metadata.
|
void |
addItem(String key,
com.aspose.pdf.engine.data.xmp.XmpValue value)
Adds value to metadata.
|
void |
clear()
Clears metadata.
|
boolean |
contains(String key)
Checks does key is contained in metadata.
|
boolean |
containsItem(com.aspose.ms.System.Collections.Generic.KeyValuePair<String,com.aspose.pdf.engine.data.xmp.XmpValue> item)
Checks does specified key-value pair is contained in the dictionary.
|
boolean |
containsKey(String key)
Determines does this dictionary contasins specified key.
|
void |
copyTo(com.aspose.ms.System.Array array,
int index)
Copies elements of the collection into array.
|
void |
copyToTArray(com.aspose.ms.System.Collections.Generic.KeyValuePair<String,com.aspose.pdf.engine.data.xmp.XmpValue>[] array,
int index)
Copies elements of the collection into array.
|
com.aspose.pdf.engine.data.xmp.XmpValue |
get_Item(String key)
Gets data from metadata.
|
com.aspose.ms.System.Collections.Generic.IGenericDictionary<String,XmpPdfAExtensionSchema> |
getExtensionFields_Internal()
For Internal usage only.
|
Hashtable<String,XmpPdfAExtensionSchema> |
getExtensionFields()
Gets the dictionary of extension fields.
|
com.aspose.ms.System.Collections.Generic.IGenericCollection<String> |
getKeys()
Gets collection of metadata keys.
|
String |
getNamespaceUriByPrefix(String prefix)
Returns namespace URI by prefix.
|
String |
getPrefixByNamespaceUri(String namespaceUri)
Returns prefix by namespace URI.
|
Object |
getSyncRoot()
Gets collection synchronization object.
|
com.aspose.ms.System.Collections.Generic.IGenericCollection<com.aspose.pdf.engine.data.xmp.XmpValue> |
getValues()
Gets values in the metadata.
|
boolean |
isFixedSize()
Checks if colleciton has fixed size.
|
boolean |
isReadOnly()
Checks if collection is read-only.
|
boolean |
isSynchronized()
Checks if collection is synchronized.
|
com.aspose.ms.System.Collections.IEnumerator |
iterator_Rename_Namesake() |
com.aspose.ms.System.Collections.Generic.IGenericEnumerator<com.aspose.ms.System.Collections.Generic.KeyValuePair<String,com.aspose.pdf.engine.data.xmp.XmpValue>> |
iterator()
Returns dictionary enumerator.
|
Iterator<com.aspose.ms.System.Collections.Generic.KeyValuePair<String,com.aspose.pdf.engine.data.xmp.XmpValue>> |
iteratorIE()
Gets enumerator of the collection.
|
void |
registerNamespaceUri(String prefix,
String namespaceUri)
Registers namespace URI.
|
void |
registerNamespaceUri(String prefix,
String namespaceUri,
String schemaDescription)
Registers namespace URI.
|
boolean |
removeItem(com.aspose.ms.System.Collections.Generic.KeyValuePair<String,com.aspose.pdf.engine.data.xmp.XmpValue> item)
Removes key/value pair from the colleciton.
|
boolean |
removeItemByKey(String key)
Removes entry from metadata.
|
void |
set_Item(String key,
com.aspose.pdf.engine.data.xmp.XmpValue value)
Sets data from metadata.
|
int |
size()
Gets count of elements in the collection.
|
boolean |
tryGetValue(String key,
Object[] value)
Tries to find key in the dictionary and retreives value if found.
|
boolean |
tryGetValue(String key,
com.aspose.pdf.engine.data.xmp.XmpValue[] value)
Tries to find key in the dictionary and retreives value if found.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public void registerNamespaceUri(String prefix, String namespaceUri)
Registers namespace URI.
prefix
- The value of prefix.namespaceUri
- The value of namespace URI.public void registerNamespaceUri(String prefix, String namespaceUri, String schemaDescription)
Registers namespace URI.
prefix
- The value of prefix.namespaceUri
- The value of namespace URI.schemaDescription
- The value of schema description.public String getNamespaceUriByPrefix(String prefix)
Returns namespace URI by prefix.
prefix
- The value of prefix.public String getPrefixByNamespaceUri(String namespaceUri)
Returns prefix by namespace URI.
namespaceUri
- Namespace URI.public void addItem(String key, com.aspose.pdf.engine.data.xmp.XmpValue value)
Adds value to metadata.
addItem
in interface com.aspose.ms.System.Collections.Generic.IGenericDictionary<String,com.aspose.pdf.engine.data.xmp.XmpValue>
key
- The key to add.value
- Value which will be added.public void addItem(String key, Object value)
Adds value to metadata.
key
- The key to add.value
- Value which will be added.public void addItem(String prefix, XmpPdfAExtensionObject value)
Adds pdf extension to metadata.
prefix
- The prefix of extension.value
- Value which will be added.public void clear()
Clears metadata.
clear
in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<com.aspose.ms.System.Collections.Generic.KeyValuePair<String,com.aspose.pdf.engine.data.xmp.XmpValue>>
public boolean contains(String key)
Checks does key is contained in metadata.
key
- The key of entry to find.public com.aspose.ms.System.Collections.Generic.IGenericEnumerator<com.aspose.ms.System.Collections.Generic.KeyValuePair<String,com.aspose.pdf.engine.data.xmp.XmpValue>> iterator()
Returns dictionary enumerator.
iterator
in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<com.aspose.ms.System.Collections.Generic.KeyValuePair<String,com.aspose.pdf.engine.data.xmp.XmpValue>>
iterator
in interface com.aspose.ms.System.Collections.IEnumerable<com.aspose.ms.System.Collections.Generic.KeyValuePair<String,com.aspose.pdf.engine.data.xmp.XmpValue>>
iterator
in interface Iterable<com.aspose.ms.System.Collections.Generic.KeyValuePair<String,com.aspose.pdf.engine.data.xmp.XmpValue>>
public boolean isFixedSize()
Checks if colleciton has fixed size.
public boolean isReadOnly()
Checks if collection is read-only.
isReadOnly
in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<com.aspose.ms.System.Collections.Generic.KeyValuePair<String,com.aspose.pdf.engine.data.xmp.XmpValue>>
public com.aspose.ms.System.Collections.Generic.IGenericCollection<String> getKeys()
Gets collection of metadata keys.
getKeys
in interface com.aspose.ms.System.Collections.Generic.IGenericDictionary<String,com.aspose.pdf.engine.data.xmp.XmpValue>
public boolean removeItemByKey(String key)
Removes entry from metadata.
removeItemByKey
in interface com.aspose.ms.System.Collections.Generic.IGenericDictionary<String,com.aspose.pdf.engine.data.xmp.XmpValue>
key
- The key of entry to remove.public com.aspose.ms.System.Collections.Generic.IGenericCollection<com.aspose.pdf.engine.data.xmp.XmpValue> getValues()
Gets values in the metadata.
getValues
in interface com.aspose.ms.System.Collections.Generic.IGenericDictionary<String,com.aspose.pdf.engine.data.xmp.XmpValue>
public com.aspose.ms.System.Collections.Generic.IGenericDictionary<String,XmpPdfAExtensionSchema> getExtensionFields_Internal()
Gets the dictionary of extension fields.
public Hashtable<String,XmpPdfAExtensionSchema> getExtensionFields()
Gets the dictionary of extension fields.
Hashtable<String, XmpPdfAExtensionSchema>
objectpublic com.aspose.pdf.engine.data.xmp.XmpValue get_Item(String key)
Gets data from metadata.
get_Item
in interface com.aspose.ms.System.Collections.Generic.IGenericDictionary<String,com.aspose.pdf.engine.data.xmp.XmpValue>
key
- The key name.public void set_Item(String key, com.aspose.pdf.engine.data.xmp.XmpValue value)
Sets data from metadata.
set_Item
in interface com.aspose.ms.System.Collections.Generic.IGenericDictionary<String,com.aspose.pdf.engine.data.xmp.XmpValue>
key
- key namevalue
- The value objectpublic void copyToTArray(com.aspose.ms.System.Collections.Generic.KeyValuePair<String,com.aspose.pdf.engine.data.xmp.XmpValue>[] array, int index)
Copies elements of the collection into array.
copyToTArray
in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<com.aspose.ms.System.Collections.Generic.KeyValuePair<String,com.aspose.pdf.engine.data.xmp.XmpValue>>
array
- Destination array.index
- Starting index.public int size()
Gets count of elements in the collection.
size
in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<com.aspose.ms.System.Collections.Generic.KeyValuePair<String,com.aspose.pdf.engine.data.xmp.XmpValue>>
public boolean isSynchronized()
Checks if collection is synchronized.
public Object getSyncRoot()
Gets collection synchronization object.
public Iterator<com.aspose.ms.System.Collections.Generic.KeyValuePair<String,com.aspose.pdf.engine.data.xmp.XmpValue>> iteratorIE()
Gets enumerator of the collection.
IEnumerator
public com.aspose.ms.System.Collections.IEnumerator iterator_Rename_Namesake()
public void copyTo(com.aspose.ms.System.Array array, int index)
Copies elements of the collection into array.
array
- Destination array.index
- Starting index.public boolean containsKey(String key)
Determines does this dictionary contasins specified key.
containsKey
in interface com.aspose.ms.System.Collections.Generic.IGenericDictionary<String,com.aspose.pdf.engine.data.xmp.XmpValue>
key
- Key to search in the dictionary.public boolean tryGetValue(String key, Object[] value)
Tries to find key in the dictionary and retreives value if found.
tryGetValue
in interface com.aspose.ms.System.Collections.Generic.IGenericDictionary<String,com.aspose.pdf.engine.data.xmp.XmpValue>
key
- Key to search in the dictionary.value
- Retreived value.public boolean tryGetValue(String key, com.aspose.pdf.engine.data.xmp.XmpValue[] value)
Tries to find key in the dictionary and retreives value if found.
key
- Key to search in the dictionary.value
- Retreived value.public void addItem(com.aspose.ms.System.Collections.Generic.KeyValuePair<String,com.aspose.pdf.engine.data.xmp.XmpValue> item)
Adds pair with key and value into the dictionary.
addItem
in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<com.aspose.ms.System.Collections.Generic.KeyValuePair<String,com.aspose.pdf.engine.data.xmp.XmpValue>>
item
- Item to be added.public boolean containsItem(com.aspose.ms.System.Collections.Generic.KeyValuePair<String,com.aspose.pdf.engine.data.xmp.XmpValue> item)
Checks does specified key-value pair is contained in the dictionary.
containsItem
in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<com.aspose.ms.System.Collections.Generic.KeyValuePair<String,com.aspose.pdf.engine.data.xmp.XmpValue>>
item
- Key-value pair.public boolean removeItem(com.aspose.ms.System.Collections.Generic.KeyValuePair<String,com.aspose.pdf.engine.data.xmp.XmpValue> item)
Removes key/value pair from the colleciton.
removeItem
in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<com.aspose.ms.System.Collections.Generic.KeyValuePair<String,com.aspose.pdf.engine.data.xmp.XmpValue>>
item
- Key/value pair to be removed.Copyright © 2018 Aspose. All Rights Reserved.