public class XmpPacketWrapper extends MetadataPackage implements IXmpType
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.
Learn more
| 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 whether 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.
|
int |
getPackageCount()
Gets the number of packages inside the XMP structure.
|
XmpPackage[] |
getPackages()
Gets array of
XmpPackage inside XMP. |
XmpSchemes |
getSchemes()
Provides access to known XMP schemas.
|
XmpTrailerPI |
getTrailerPI()
Gets the trailer processing instruction.
|
String |
getXmpRepresentation()
Returns string contained value in XMP format.
|
void |
removePackage(XmpPackage package_)
Removes the specified package.
|
void |
setHeaderPI(XmpHeaderPI value)
Sets the header processing instruction.
|
void |
setMeta(XmpMeta value)
Sets the XMP meta.
|
void |
setTrailerPI(XmpTrailerPI value)
Sets the trailer processing instruction.
|
addProperties, contains, findProperties, get_Item, getCount, getKeys, getKnowPropertyDescriptors, getMetadataType, getPropertyDescriptors, iterator, removeProperties, sanitize, setProperties, updatePropertiesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic XmpPacketWrapper()
Initializes a new instance of the XmpPacketWrapper class.
public XmpPacketWrapper(XmpHeaderPI header, XmpTrailerPI trailer, XmpMeta xmpMeta)
Initializes a new instance of the XmpPacketWrapper class.
header - XMP header processing instruction.trailer - XMP trailer processing instruction.xmpMeta - Instance of XmpMeta.public final void addPackage(XmpPackage package_)
Adds the package.
package - The package.public final void clearPackages()
Removes all XmpPackage inside XMP.
public final boolean containsPackage(String namespaceUri)
Determines whether package is exist in XMP wrapper.
namespaceUri - Package namespace URI.true if package found by namespaceUri; otherwise false.com.aspose.ms.System.ArgumentNullException - Namespace URI could not be null.public final XmpHeaderPI getHeaderPI()
Gets the header processing instruction.
public final XmpMeta getMeta()
Gets the XMP meta.
public final XmpPackage getPackage(String namespaceUri)
Gets package by namespace uri.
namespaceUri - Package schema uri.XmpPackage if package found by namespaceUri; otherwise null.com.aspose.ms.System.ArgumentNullException - Namespace URI could not be null.public final int getPackageCount()
Gets the number of packages inside the XMP structure.
public final XmpPackage[] getPackages()
Gets array of XmpPackage inside XMP.
public final XmpSchemes getSchemes()
Provides access to known XMP schemas.
public final XmpTrailerPI getTrailerPI()
Gets the trailer processing instruction.
public final String getXmpRepresentation()
Returns string contained value in XMP format.
getXmpRepresentation in interface IXmpTypestring contained XMP representation.public final void removePackage(XmpPackage package_)
Removes the specified package.
package - The package.public final void setHeaderPI(XmpHeaderPI value)
Sets the header processing instruction.
value - The header processing instruction.public final void setMeta(XmpMeta value)
Sets the XMP meta.
value - The XMP meta.public final void setTrailerPI(XmpTrailerPI value)
Sets the trailer processing instruction.
value - The trailer processing instruction.Copyright © 2026. All rights reserved.