Packages

 

com.aspose.imaging.xmp

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 - The XMP header of processing instruction.
        trailer - The XMP trailer of processing instruction.
        xmpMeta - The XMP metadata.
      • XmpPacketWrapper

        public XmpPacketWrapper()

        Initializes a new instance of the XmpPacketWrapper class.

    • Method Detail

      • getHeaderPi

        public XmpHeaderPi getHeaderPi()

        Gets the header processing instruction.

        Returns:
        The Header processing instruction.
      • getMeta

        public XmpMeta getMeta()

        Gets the XMP meta. Optional.

        Returns:
        The XMP meta. Optional.
      • setMeta

        public void setMeta(XmpMeta value)

        Sets the XMP meta. Optional.

        Parameters:
        value - The XMP meta. Optional.
      • getTrailerPi

        public XmpTrailerPi getTrailerPi()

        Gets the trailer processing instruction.

        Returns:
        Trailer processing instruction.
      • getPackages

        public XmpPackage[] getPackages()

        Gets array of XmpPackage inside XMP.

        Returns:
        The array of XmpPackage inside XMP.
      • getPackagesCount

        public int getPackagesCount()

        Gets amount of packages inside XMP structure.

        Returns:
        The amount of packages inside XMP structure.
      • addPackage

        public void addPackage(XmpPackage package_)

        Adds the package.

        Parameters:
        package_ - The package.
      • getPackage

        public XmpPackage getPackage(String namespaceUri)

        Gets package by namespace URI.

        Parameters:
        namespaceUri - The package schema URI.
        Returns:
        Returns the XMP package for specified namespace URI.
        Throws:
        com.aspose.ms.System.ArgumentNullException - namespaceUri
      • containsPackage

        public boolean containsPackage(String namespaceUri)

        Determines whethere package is exist in xmp wrapper.

        Parameters:
        namespaceUri - Package schema uri.
        Returns:
        Returns true if package with specified namespace Uri exist in XMP wrapper.
      • removePackage

        public void removePackage(XmpPackage package_)

        Removes the XMP package.

        Parameters:
        package_ - The package.
      • clearPackages

        public void clearPackages()

        Removes all XmpPackage inside XMP.