com.groupdocs.metadata

Interfaces

Classes

Exceptions

com.groupdocs.metadata

Class XmpPacketWrapper



  • public class XmpPacketWrapper
    extends Object

    Contains serialized XMP package including header and trailer.


    A wrapper consisting of a pair of XML processing instructions (PIs) may be placed around the rdf:RDF element.

    • Constructor Detail

      • XmpPacketWrapper

        public XmpPacketWrapper(XmpHeaderPI header,
                        XmpTrailerPI trailer,
                        XmpMeta xmpMeta)

        Initializes a new instance of the XmpPacketWrapper class.

        Parameters:
        header - XMP header processing instruction.
        trailer - XMP trailer processing instruction.
        xmpMeta - Instance of XmpMeta.
      • XmpPacketWrapper

        public XmpPacketWrapper()

        Initializes a new instance of the XmpPacketWrapper class.

    • Method Detail

      • getHeaderPI

        public final XmpHeaderPI getHeaderPI()

        Header processing instruction.

        Value: The header process instruction.
      • getMeta

        public final XmpMeta getMeta()

        Gets the XMP meta. Optional.

        Value: The XMP meta.
      • setMeta

        public final void setMeta(XmpMeta value)

        Gets the XMP meta. Optional.

        Value: The XMP meta.
      • getTrailerPI

        public final XmpTrailerPI getTrailerPI()

        Trailer processing instruction.

        Value: The trailer process instruction.
      • getPackages

        public final XmpPackage[] getPackages()

        Gets array of XmpPackage inside XMP.

        Value: XMP packages.
      • getPackagesCount

        public final int getPackagesCount()

        Gets amount of packages inside XMP structure.

        Value: The packages count.
      • getSchemes

        public final XmpSchemes getSchemes()

        Provides access to known XMP schemas.

        Value: XMP schemes.
      • addPackage

        public final void addPackage(XmpPackage package_)

        Adds the package.

        Parameters:
        package - The package.
      • getPackage

        public final XmpPackage getPackage(String namespaceUri)

        Gets package by namespace uri.

        Parameters:
        namespaceUri - Package schema uri.
        Returns:
        Appropriate XmpPackage if package found by namespaceUri; otherwise null.
        Throws:
        com.aspose.ms.System.ArgumentNullException - Namespace URI could not be null.
      • containsPackage

        public final boolean containsPackage(String namespaceUri)

        Determines whether package is exist in XMP wrapper.

        Parameters:
        namespaceUri - Package namespace URI.
        Returns:
        true if package found by namespaceUri; otherwise false.
        Throws:
        com.aspose.ms.System.ArgumentNullException - Namespace URI could not be null.
      • removePackage

        public final void removePackage(XmpPackage package_)

        Removes the package.

        Parameters:
        package - The package.
        Throws:
        com.aspose.ms.System.ArgumentNullException - Package could not be null.
      • clearPackages

        public final void clearPackages()

        Removes all XmpPackage inside XMP.