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
addPackage(XmpPackage package_)Adds the package.
clearPackages()Removes all XmpPackage inside XMP.
containsPackage(String namespaceUri)Determines whethere package is exist in xmp wrapper.
deepClone_internalized()Clones this instance.
equals(Object arg0)
getClass()
getHeaderPi()Gets the header processing instruction.
getMeta()Gets the XMP meta.
getPackage(String namespaceUri)Gets package by namespace URI.
getPackages()Gets array of XmpPackage inside XMP.
getPackagesCount()Gets amount of packages inside XMP structure.
getRdfRoot_internalized()Gets the root RDF element.
getTrailerPi()Gets the trailer processing instruction.
getXmlValue_internalized()Converts XMP value to the XML representation.
hashCode()
notify()
notifyAll()
removePackage(XmpPackage package_)Removes the XMP package.
setHeaderPi(XmpHeaderPi value)Sets the header processing instruction.
setMeta(XmpMeta value)Sets the XMP meta.
setRdfRoot_internalized(XmpRdfRoot value)Sets the root RDF element.
setTrailerPi(XmpTrailerPi value)Sets the trailer processing instruction.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

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.

addPackage(XmpPackage package_)

public void addPackage(XmpPackage package_)

Adds the package.

Parameters:

ParameterTypeDescription
package_XmpPackageThe package.

clearPackages()

public void clearPackages()

Removes all XmpPackage inside XMP.

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.

deepClone_internalized()

public final XmpPacketWrapper deepClone_internalized()

Clones this instance.

Returns: XmpPacketWrapper - The cloned object

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.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.

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.

getPackages()

public XmpPackage[] getPackages()

Gets array of XmpPackage inside XMP.

Returns: com.aspose.psd.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.

getRdfRoot_internalized()

public XmpRdfRoot getRdfRoot_internalized()

Gets the root RDF element.

Returns: XmpRdfRoot - The RDF root element.

getTrailerPi()

public XmpTrailerPi getTrailerPi()

Gets the trailer processing instruction.

Returns: XmpTrailerPi - Trailer processing instruction.

getXmlValue_internalized()

public String getXmlValue_internalized()

Converts XMP value to the XML representation.

Returns: java.lang.String - Returns converted XMP value to XML.

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

removePackage(XmpPackage package_)

public void removePackage(XmpPackage package_)

Removes the XMP package.

Parameters:

ParameterTypeDescription
package_XmpPackageThe package.

setHeaderPi(XmpHeaderPi value)

public void setHeaderPi(XmpHeaderPi value)

Sets the header processing instruction.

Parameters:

ParameterTypeDescription
valueXmpHeaderPiThe Header processing instruction.

setMeta(XmpMeta value)

public void setMeta(XmpMeta value)

Sets the XMP meta. Optional.

Parameters:

ParameterTypeDescription
valueXmpMetaThe XMP meta. Optional.

setRdfRoot_internalized(XmpRdfRoot value)

public void setRdfRoot_internalized(XmpRdfRoot value)

Sets the root RDF element.

Parameters:

ParameterTypeDescription
valueXmpRdfRootThe RDF root element.

setTrailerPi(XmpTrailerPi value)

public void setTrailerPi(XmpTrailerPi value)

Sets the trailer processing instruction.

Parameters:

ParameterTypeDescription
valueXmpTrailerPiTrailer processing instruction.

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int