XmpPacketWrapper

Inheritance: java.lang.Object

public class XmpPacketWrapper

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.

Constructors

ConstructorDescription
XmpPacketWrapper(XmpHeaderPi header, XmpTrailerPi trailer, XmpMeta xmpMeta)Initializes a new instance of the XmpPacketWrapper class.
XmpPacketWrapper()Initializes a new instance of the XmpPacketWrapper class.

Methods

MethodDescription
getHeaderPi()Gets the header processing instruction.
getMeta()Gets the XMP meta.
setMeta(XmpMeta value)Sets the XMP meta.
getTrailerPi()Gets the trailer processing instruction.
getPackages()Gets array of XmpPackage inside XMP.
getPackagesCount()Gets amount of packages inside XMP structure.
addPackage(XmpPackage package_)Adds the package.
getPackage(String namespaceUri)Gets package by namespace URI.
containsPackage(String namespaceUri)Determines whethere package is exist in xmp wrapper.
removePackage(XmpPackage package_)Removes the XMP package.
clearPackages()Removes all XmpPackage inside XMP.

XmpPacketWrapper(XmpHeaderPi header, XmpTrailerPi trailer, XmpMeta xmpMeta)

public XmpPacketWrapper(XmpHeaderPi header, XmpTrailerPi trailer, XmpMeta xmpMeta)

Initializes a new instance of the XmpPacketWrapper class.

Parameters:

ParameterTypeDescription
headerXmpHeaderPiThe XMP header of processing instruction.
trailerXmpTrailerPiThe XMP trailer of processing instruction.
xmpMetaXmpMetaThe XMP metadata.

XmpPacketWrapper()

public XmpPacketWrapper()

Initializes a new instance of the XmpPacketWrapper class.

getHeaderPi()

public XmpHeaderPi getHeaderPi()

Gets the header processing instruction.

Returns: XmpHeaderPi - The Header processing instruction.

getMeta()

public XmpMeta getMeta()

Gets the XMP meta. Optional.

Returns: XmpMeta - The XMP meta. Optional.

setMeta(XmpMeta value)

public void setMeta(XmpMeta value)

Sets the XMP meta. Optional.

Parameters:

ParameterTypeDescription
valueXmpMetaThe XMP meta. Optional.

getTrailerPi()

public XmpTrailerPi getTrailerPi()

Gets the trailer processing instruction.

Returns: XmpTrailerPi - Trailer processing instruction.

getPackages()

public XmpPackage[] getPackages()

Gets array of XmpPackage inside XMP.

Returns: com.aspose.imaging.xmp.XmpPackage[] - The array of XmpPackage inside XMP.

getPackagesCount()

public int getPackagesCount()

Gets amount of packages inside XMP structure.

Returns: int - The amount of packages inside XMP structure.

addPackage(XmpPackage package_)

public void addPackage(XmpPackage package_)

Adds the package.

Parameters:

ParameterTypeDescription
package_XmpPackageThe package.

getPackage(String namespaceUri)

public XmpPackage getPackage(String namespaceUri)

Gets package by namespace URI.

Parameters:

ParameterTypeDescription
namespaceUrijava.lang.StringThe package schema URI.

Returns: XmpPackage - Returns the XMP package for specified namespace URI.

containsPackage(String namespaceUri)

public boolean containsPackage(String namespaceUri)

Determines whethere package is exist in xmp wrapper.

Parameters:

ParameterTypeDescription
namespaceUrijava.lang.StringPackage schema uri.

Returns: boolean - Returns true if package with specified namespace Uri exist in XMP wrapper.

removePackage(XmpPackage package_)

public void removePackage(XmpPackage package_)

Removes the XMP package.

Parameters:

ParameterTypeDescription
package_XmpPackageThe package.

clearPackages()

public void clearPackages()

Removes all XmpPackage inside XMP.