Packages

 

com.aspose.cad.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.
      • setHeaderPi

        public void setHeaderPi(XmpHeaderPi value)

        Gets the header processing instruction.

        Parameters:
        value - The Header processing instruction.
      • getMeta

        public XmpMeta getMeta()

        Gets the XMP meta. Optional.

        Returns:
        The XMP meta. Optional.
      • setMeta

        public void setMeta(XmpMeta value)

        Gets the XMP meta. Optional.

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

        public XmpTrailerPi getTrailerPi()

        Gets the trailer processing instruction.

        Returns:
        Trailer processing instruction.
      • setTrailerPi

        public void setTrailerPi(XmpTrailerPi value)

        Gets the trailer processing instruction.

        Parameters:
        value - Trailer processing instruction.
      • getPackages

        public com.aspose.cad.xmp.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.
      • getRdfRoot_internalized

        public XmpRdfRoot getRdfRoot_internalized()

        Gets the root RDF element.

        Returns:
        The RDF root element.
      • setRdfRoot_internalized

        public void setRdfRoot_internalized(XmpRdfRoot value)

        Gets the root RDF element.

        Parameters:
        value - The RDF root element.
      • addPackage

        public void addPackage(com.aspose.cad.xmp.XmpPackage package_)

        Adds the package.

        Parameters:
        package - The package.
      • getPackage

        public com.aspose.cad.xmp.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(com.aspose.cad.xmp.XmpPackage package_)

        Removes the XMP package.

        Parameters:
        package - The package.
      • clearPackages

        public void clearPackages()

        Removes all XmpPackage inside XMP.

      • getXmlValue_internalized

        public String getXmlValue_internalized()

        Converts XMP value to the XML representation.

        Returns:
        Returns converted XMP value to XML.