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 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 |
setMeta(XmpMeta value)
Sets the XMP meta.
|
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 XmpHeaderPi getHeaderPi()
Gets the header processing instruction.
public XmpMeta getMeta()
Gets the XMP meta. Optional.
public void setMeta(XmpMeta value)
Sets the XMP meta. Optional.
value
- The XMP meta. Optional.public XmpTrailerPi getTrailerPi()
Gets the trailer processing instruction.
public XmpPackage[] getPackages()
Gets array of XmpPackage
inside XMP.
XmpPackage
inside XMP.public int getPackagesCount()
Gets amount of packages inside XMP structure.
public void addPackage(XmpPackage package_)
Adds the package.
package_
- The package.public XmpPackage getPackage(String namespaceUri)
Gets package by namespace URI.
namespaceUri
- The package schema URI.com.aspose.ms.System.ArgumentNullException
- namespaceUripublic boolean containsPackage(String namespaceUri)
Determines whethere package is exist in xmp wrapper.
namespaceUri
- Package schema uri.public void removePackage(XmpPackage package_)
Removes the XMP package.
package_
- The package.public void clearPackages()
Removes all XmpPackage
inside XMP.