public final class Metadata extends Object implements com.aspose.ms.System.Collections.IDictionary
Provides access to XMP metadata stream.
| Modifier and Type | Method and Description |
|---|---|
void |
add(String prefix,
XmpPdfAExtensionObject value)
Adds pdf extension to metadata.
|
void |
addItem(Object key,
Object value)
Adds value to metadata.
|
void |
clear()
Clears metadata.
|
boolean |
contains(Object key)
Checks does key is contained in metadata.
|
void |
copyTo(com.aspose.ms.System.Array array,
int index)
Copies elements of the collection into array.
|
Object |
get_Item(Object key)
Gets data from metadata.
|
com.aspose.ms.System.Collections.IDictionary |
getExtensionFields()
Gets the dictionary of extension fields.
|
com.aspose.ms.System.Collections.ICollection |
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.ICollection |
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.IDictionaryEnumerator |
iterator()
Returns dictionary enumerator.
|
com.aspose.ms.System.Collections.IEnumerator |
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.
|
void |
removeItem(Object key)
Removes entry from metadata.
|
void |
set_Item(Object key,
Object value)
Sets data from metadata.
|
int |
size()
Gets count of elements in the collection.
|
public void registerNamespaceUri(String prefix, String namespaceUri)
Registers namespace URI.
prefix - Prefix.namespaceUri - Namespace URI.public void registerNamespaceUri(String prefix, String namespaceUri, String schemaDescription)
Registers namespace URI.
prefix - Prefix.namespaceUri - Namespace URI.public String getNamespaceUriByPrefix(String prefix)
Returns namespace URI by prefix.
prefix - Prefix.public String getPrefixByNamespaceUri(String namespaceUri)
Returns prefix by namespace URI.
namespaceUri - Namespace URI.public void addItem(Object key, Object value)
Adds value to metadata.
addItem in interface com.aspose.ms.System.Collections.IDictionarykey - Key name.value - Value which will be added.public void add(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.IDictionarypublic boolean contains(Object key)
Checks does key is contained in metadata.
contains in interface com.aspose.ms.System.Collections.IDictionarykey - Key name.public com.aspose.ms.System.Collections.IDictionaryEnumerator iterator()
Returns dictionary enumerator.
public boolean isFixedSize()
Checks if colleciton has fixed size.
isFixedSize in interface com.aspose.ms.System.Collections.IDictionarypublic boolean isReadOnly()
Checks if collection is read-only.
isReadOnly in interface com.aspose.ms.System.Collections.IDictionarypublic com.aspose.ms.System.Collections.ICollection getKeys()
Gets collection of metadata keys.
getKeys in interface com.aspose.ms.System.Collections.IDictionarypublic void removeItem(Object key)
Removes entry from metadata.
removeItem in interface com.aspose.ms.System.Collections.IDictionarykey - public com.aspose.ms.System.Collections.ICollection getValues()
Gets values in the metadata.
getValues in interface com.aspose.ms.System.Collections.IDictionarypublic com.aspose.ms.System.Collections.IDictionary getExtensionFields()
Gets the dictionary of extension fields.
public Object get_Item(Object key)
Gets data from metadata.
get_Item in interface com.aspose.ms.System.Collections.IDictionarykey - Key name.public void set_Item(Object key, Object value)
Sets data from metadata.
set_Item in interface com.aspose.ms.System.Collections.IDictionarykey - Key name.public int size()
Gets count of elements in the collection.
size in interface com.aspose.ms.System.Collections.ICollectionpublic boolean isSynchronized()
Checks if collection is synchronized.
isSynchronized in interface com.aspose.ms.System.Collections.ICollectionpublic Object getSyncRoot()
Gets collection synchronization object.
getSyncRoot in interface com.aspose.ms.System.Collections.ICollectionpublic com.aspose.ms.System.Collections.IEnumerator iteratorIE()
Gets enumerator of the collection.
public void copyTo(com.aspose.ms.System.Array array,
int index)
Copies elements of the collection into array.
copyTo in interface com.aspose.ms.System.Collections.ICollectionarray - Destination array.index - Starting index.Copyright © 2018 Aspose. All Rights Reserved.