public class XmpPacketWrapper extends Object
Contains serialized xmp package including header and trailer.
Constructor and Description |
---|
XmpPacketWrapper()
Initializes a new instance of the
XmpPacketWrapper class. |
XmpPacketWrapper(XmpHeaderPi header,
XmpTrailerPi trailer,
XmpMeta xmpMeta)
Initializes a new instance of the
XmpPacketWrapper class. |
Modifier and Type | Method and Description |
---|---|
void |
addPackage(XmpPackage package_)
Adds the package.
|
void |
clearPackages()
Removes all
XmpPackage inside XMP. |
boolean |
containsPackage(String namespaceUri)
Determines whethere package is exist in xmp wrapper.
|
XmpHeaderPi |
getHeaderPi()
Gets the header processing instruction.
|
XmpMeta |
getMeta()
Gets the XMP meta.
|
XmpPackage |
getPackage(String namespaceUri)
Gets package by namespace URI.
|
XmpPackage[] |
getPackages()
Gets array of
XmpPackage inside XMP. |
int |
getPackagesCount()
Gets amount of packages inside XMP structure.
|
XmpTrailerPi |
getTrailerPi()
Gets the trailer processing instruction.
|
void |
removePackage(XmpPackage package_)
Removes the XMP package.
|
void |
setHeaderPi(XmpHeaderPi value)
Gets the header processing instruction.
|
void |
setMeta(XmpMeta value)
Gets the XMP meta.
|
void |
setTrailerPi(XmpTrailerPi value)
Gets the trailer processing instruction.
|
public XmpPacketWrapper(XmpHeaderPi header, XmpTrailerPi trailer, XmpMeta xmpMeta)
Initializes a new instance of the XmpPacketWrapper
class.
header
- The XMP header of processing instruction.trailer
- The XMP trailer of processing instruction.xmpMeta
- The XMP metadata.public XmpPacketWrapper()
Initializes a new instance of the XmpPacketWrapper
class.
public final XmpHeaderPi getHeaderPi()
Gets the header processing instruction.
Value: The Header processing instruction.public final void setHeaderPi(XmpHeaderPi value)
Gets the header processing instruction.
Value: The Header processing instruction.public final XmpMeta getMeta()
Gets the XMP meta. Optional.
Value: The XMP meta. Optional.public final void setMeta(XmpMeta value)
Gets the XMP meta. Optional.
Value: The XMP meta. Optional.public final XmpTrailerPi getTrailerPi()
Gets the trailer processing instruction.
Value: Trailer processing instruction.public final void setTrailerPi(XmpTrailerPi value)
Gets the trailer processing instruction.
Value: Trailer processing instruction.public final XmpPackage[] getPackages()
Gets array of XmpPackage
inside XMP.
XmpPackage
inside XMP.public final int getPackagesCount()
Gets amount of packages inside XMP structure.
Value: The amount of packages inside XMP structure.public final void addPackage(XmpPackage package_)
Adds the package.
package_
- The package.public final XmpPackage getPackage(String namespaceUri)
Gets package by namespace URI.
namespaceUri
- The package schema URI.com.aspose.ms.System.ArgumentNullException
- namespaceUripublic final boolean containsPackage(String namespaceUri)
Determines whethere package is exist in xmp wrapper.
namespaceUri
- Package schema uri.public final void removePackage(XmpPackage package_)
Removes the XMP package.
package_
- The package.public final void clearPackages()
Removes all XmpPackage
inside XMP.
Copyright (c) 2008-2020 Aspose Pty Ltd. All Rights Reserved.