com.groupdocs.metadata.core

Interfaces

Classes

Enums

Exceptions

com.groupdocs.metadata.core

Class XmpPackage

    • Constructor Detail

      • XmpPackage

        public XmpPackage(String prefix,
                          String namespaceUri)

        Initializes a new instance of the XmpPackage class.

        Parameters:
        prefix - XMP prefix, for example dc:title.
        namespaceUri - Namespace uri.
    • Method Detail

      • getPrefix

        public final String getPrefix()

        Gets the xmlns prefix.

        Returns:
        The prefix.
      • getNamespaceUri

        public final String getNamespaceUri()

        Gets the namespace URI.

        Returns:
        The namespace URI.
      • getXmlNamespace

        public final String getXmlNamespace()

        Gets the XML namespace.

        Returns:
        The XML namespace.
      • set

        public void set(String name,
                        String value)

        Sets string property.

        Parameters:
        name - XMP metadata property name.
        value - XMP metadata property value.
      • set

        public final void set(String name,
                              int value)

        Sets integer property.

        Parameters:
        name - XMP metadata property name.
        value - XMP metadata property value.
      • set

        public final void set(String name,
                              boolean value)

        Sets boolean property.

        Parameters:
        name - XMP metadata property name.
        value - XMP metadata property value.
      • set

        public final void set(String name,
                              Date value)

        Sets DateTime property.

        Parameters:
        name - XMP metadata property name.
        value - XMP metadata property value.
      • set

        public final void set(String name,
                              double value)

        Sets double property.

        Parameters:
        name - XMP metadata property name.
        value - XMP metadata property value.
      • remove

        public final boolean remove(String name)

        Removes the property with the specified name.

        Parameters:
        name - XMP metadata property name.
        Returns:
        True if the specified metadata property is found and removed; otherwise, false.
      • clear

        public final void clear()

        Removes all XMP properties.

      • set

        public final void set(String name,
                              XmpValueBase value)

        Sets the value inherited from XmpValueBase .

        Parameters:
        name - XMP metadata property name.
        value - XMP metadata property value.
      • set

        public void set(String name,
                        XmpComplexType value)

        Sets the value inherited from XmpComplexType .

        Parameters:
        name - XMP metadata property name.
        value - XMP metadata property value.
      • set

        public void set(String name,
                        XmpArray value)

        Sets the value inherited from XmpArray .

        Parameters:
        name - XMP metadata property name.
        value - XMP metadata property value.