com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class Metadata

  • All Implemented Interfaces:
    Iterable


    public final class Metadata
    extends Object
    implements Iterable

    Provides access to XMP metadata stream.

    • Method Detail

      • registerNamespaceUri

        public void registerNamespaceUri(String prefix,
                                String namespaceUri)

        Registers namespace URI.

        Parameters:
        prefix - The value of prefix.
        namespaceUri - The value of namespace URI.
      • registerNamespaceUri

        public void registerNamespaceUri(String prefix,
                                String namespaceUri,
                                String schemaDescription)

        Registers namespace URI.

        Parameters:
        prefix - The value of prefix.
        namespaceUri - The value of namespace URI.
        schemaDescription - The value of schema description.
      • getNamespaceUriByPrefix

        public String getNamespaceUriByPrefix(String prefix)

        Returns namespace URI by prefix.

        Parameters:
        prefix - The value of prefix.
        Returns:
        The value of namespace URI.
      • getPrefixByNamespaceUri

        public String getPrefixByNamespaceUri(String namespaceUri)

        Returns prefix by namespace URI.

        Parameters:
        namespaceUri - Namespace URI.
        Returns:
        The value of prefix.
      • addItem

        public void addItem(Object key,
                   Object value)

        Adds value to metadata.

        Parameters:
        key - The key to add.
        value - Value which will be added.
      • add

        public void add(String prefix,
               XmpPdfAExtensionObject value)

        Adds pdf extension to metadata.

        Parameters:
        prefix - The prefix of extension.
        value - Value which will be added.
      • clear

        public void clear()

        Clears metadata.

      • contains

        public boolean contains(Object key)

        Checks does key is contained in metadata.

        Parameters:
        key - The key of entry to find.
        Returns:
        True if key is contained in the metadata.
      • iterator

        public com.aspose.ms.System.Collections.IDictionaryEnumerator iterator()

        Returns dictionary enumerator.

        Specified by:
        iterator in interface Iterable
        Returns:
        Enumerator.
      • isFixedSize

        public boolean isFixedSize()

        Checks if colleciton has fixed size.

        Returns:
        boolean value
      • isReadOnly

        public boolean isReadOnly()

        Checks if collection is read-only.

        Returns:
        boolean value
      • getKeys

        public com.aspose.ms.System.Collections.ICollection getKeys()

        Gets collection of metadata keys.

        Returns:
        ICollection object
      • removeItem

        public void removeItem(Object key)

        Removes entry from metadata.

        Parameters:
        key - The key of entry to remove.
      • getValues

        public com.aspose.ms.System.Collections.ICollection getValues()

        Gets values in the metadata.

        Returns:
        ICollection object
      • getExtensionFields

        public Hashtable<String,XmpPdfAExtensionSchema> getExtensionFields()

        Gets the dictionary of extension fields.

        Returns:
        Hashtable<String, XmpPdfAExtensionSchema> object
      • get_Item

        public Object get_Item(Object key)

        Gets data from metadata.

        Parameters:
        key - The key name.
        Returns:
        Metadata object.
      • set_Item

        public void set_Item(Object key,
                    Object value)

        Sets data from metadata.

        Parameters:
        key - key name
        value - The value object
      • size

        public int size()

        Gets count of elements in the collection.

        Returns:
        int value
      • isSynchronized

        public boolean isSynchronized()

        Checks if collection is synchronized.

        Returns:
        boolean value
      • getSyncRoot

        public Object getSyncRoot()

        Gets collection synchronization object.

        Returns:
        Object for synchronization
      • iteratorIE

        public com.aspose.ms.System.Collections.IEnumerator iteratorIE()

        Gets enumerator of the collection.

        Returns:
        IEnumerator object
        See Also:
        IEnumerator
      • copyTo

        public void copyTo(com.aspose.ms.System.Array array,
                  int index)

        Copies elements of the collection into array.

        Parameters:
        array - Destination array.
        index - Starting index.