public final class Metadata extends Object implements com.aspose.ms.System.Collections.Generic.IGenericDictionary<String,XmpValue>
Provides access to XMP metadata stream.
Modifier and Type | Method and Description |
---|---|
void |
addItem(com.aspose.ms.System.Collections.Generic.KeyValuePair<String,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,
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,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,XmpValue>[] array,
int index)
Copies elements of the collection into array.
|
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<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,XmpValue>> |
iterator()
Returns dictionary enumerator.
|
Iterator<com.aspose.ms.System.Collections.Generic.KeyValuePair<String,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,XmpValue> item)
Removes key/value pair from the colleciton.
|
boolean |
removeItemByKey(String key)
Removes entry from metadata.
|
void |
set_Item(String key,
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,
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, 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.
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,XmpValue>> iterator()
Returns dictionary enumerator.
iterator
in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<com.aspose.ms.System.Collections.Generic.KeyValuePair<String,XmpValue>>
iterator
in interface com.aspose.ms.System.Collections.IEnumerable<com.aspose.ms.System.Collections.Generic.KeyValuePair<String,XmpValue>>
iterator
in interface Iterable<com.aspose.ms.System.Collections.Generic.KeyValuePair<String,XmpValue>>
public boolean isFixedSize()
Checks if colleciton has fixed size.
public boolean isReadOnly()
Checks if collection is read-only.
public com.aspose.ms.System.Collections.Generic.IGenericCollection<String> getKeys()
Gets collection of metadata keys.
public boolean removeItemByKey(String key)
Removes entry from metadata.
public com.aspose.ms.System.Collections.Generic.IGenericCollection<XmpValue> getValues()
Gets values in the metadata.
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 void copyToTArray(com.aspose.ms.System.Collections.Generic.KeyValuePair<String,XmpValue>[] array, int index)
Copies elements of the collection into array.
public int size()
Gets count of elements in the collection.
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,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.
public boolean tryGetValue(String key, Object[] value)
Tries to find key in the dictionary and retreives value if found.
public boolean tryGetValue(String key, 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,XmpValue> item)
Adds pair with key and value into the dictionary.
public boolean containsItem(com.aspose.ms.System.Collections.Generic.KeyValuePair<String,XmpValue> item)
Checks does specified key-value pair is contained in the dictionary.