XmpPacketWrapper
Leave feedback
On this page
Inheritance: java.lang.Object, com.groupdocs.metadata.core.MetadataPackage
All Implemented Interfaces: com.groupdocs.metadata.core.IXmpType
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 | Description |
|---|---|
| XmpPacketWrapper(XmpHeaderPI header, XmpTrailerPI trailer, XmpMeta xmpMeta) | Initializes a new instance of the XmpPacketWrapper class. |
| XmpPacketWrapper() | Initializes a new instance of the XmpPacketWrapper class. |
| Method | Description |
|---|---|
| getHeaderPI() | Gets the header processing instruction. |
| setHeaderPI(XmpHeaderPI value) | Sets the header processing instruction. |
| getMeta() | Gets the XMP meta. |
| setMeta(XmpMeta value) | Sets the XMP meta. |
| getTrailerPI() | Gets the trailer processing instruction. |
| setTrailerPI(XmpTrailerPI value) | Sets the trailer processing instruction. |
| getPackages() | Gets array of XmpPackage inside XMP. |
| getPackageCount() | Gets the number of packages inside the XMP structure. |
| getSchemes() | Provides access to known XMP schemas. |
| addPackage(XmpPackage package_) | Adds the package. |
| getPackage(String namespaceUri) | Gets package by namespace uri. |
| containsPackage(String namespaceUri) | Determines whether package is exist in XMP wrapper. |
| removePackage(XmpPackage package_) | Removes the specified package. |
| clearPackages() | Removes all XmpPackage inside XMP. |
| getXmpRepresentation() | Returns string contained value in XMP format. |
public XmpPacketWrapper(XmpHeaderPI header, XmpTrailerPI trailer, XmpMeta xmpMeta)
Initializes a new instance of the XmpPacketWrapper class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| header | XmpHeaderPI | XMP header processing instruction. |
| trailer | XmpTrailerPI | XMP trailer processing instruction. |
| xmpMeta | XmpMeta | Instance of XmpMeta . |
public XmpPacketWrapper()
Initializes a new instance of the XmpPacketWrapper class.
public final XmpHeaderPI getHeaderPI()
Gets the header processing instruction.
Returns: XmpHeaderPI - The header processing instruction.
public final void setHeaderPI(XmpHeaderPI value)
Sets the header processing instruction.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | XmpHeaderPI | The header processing instruction. |
public final XmpMeta getMeta()
Gets the XMP meta.
Returns: XmpMeta - The XMP meta.
public final void setMeta(XmpMeta value)
Sets the XMP meta.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | XmpMeta | The XMP meta. |
public final XmpTrailerPI getTrailerPI()
Gets the trailer processing instruction.
Returns: XmpTrailerPI - The trailer processing instruction.
public final void setTrailerPI(XmpTrailerPI value)
Sets the trailer processing instruction.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | XmpTrailerPI | The trailer processing instruction. |
public final XmpPackage[] getPackages()
Gets array of XmpPackage inside XMP.
Returns: com.groupdocs.metadata.core.XmpPackage[] - XMP packages.
public final int getPackageCount()
Gets the number of packages inside the XMP structure.
Returns: int - The package count.
public final XmpSchemes getSchemes()
Provides access to known XMP schemas.
Returns: XmpSchemes - XMP schemes.
public final void addPackage(XmpPackage package_)
Adds the package.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| package_ | XmpPackage |
public final XmpPackage getPackage(String namespaceUri)
Gets package by namespace uri.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| namespaceUri | java.lang.String | Package schema uri. |
Returns: XmpPackage - Appropriate XmpPackage if package found by namespaceUri ; otherwise null.
public final boolean containsPackage(String namespaceUri)
Determines whether package is exist in XMP wrapper.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| namespaceUri | java.lang.String | Package namespace URI. |
Returns: boolean - true if package found by namespaceUri ; otherwise false .
public final void removePackage(XmpPackage package_)
Removes the specified package.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| package_ | XmpPackage |
public final void clearPackages()
Removes all XmpPackage inside XMP.
public final String getXmpRepresentation()
Returns string contained value in XMP format.
Returns: java.lang.String - string contained XMP representation.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.