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 whether package is exist in XMP wrapper.
|
XmpHeaderPI |
getHeaderPI()
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.
|
XmpSchemes |
getSchemes()
Provides access to known XMP schemas.
|
XmpTrailerPI |
getTrailerPI()
Trailer processing instruction.
|
void |
removePackage(XmpPackage package_)
Removes the 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
- XMP header processing instruction.trailer
- XMP trailer processing instruction.xmpMeta
- Instance of XmpMeta
.public XmpPacketWrapper()
Initializes a new instance of the XmpPacketWrapper
class.
public final XmpHeaderPI getHeaderPI()
Header processing instruction.
public final XmpMeta getMeta()
Gets the XMP meta. Optional.
public final void setMeta(XmpMeta value)
Sets the XMP meta. Optional.
value
- The XMP meta.public final XmpTrailerPI getTrailerPI()
Trailer processing instruction.
public final XmpPackage[] getPackages()
Gets array of XmpPackage
inside XMP.
public final int getPackagesCount()
Gets amount of packages inside XMP structure.
public final XmpSchemes getSchemes()
Provides access to known XMP schemas.
public final void addPackage(XmpPackage package_)
Adds the package.
package
- The package.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 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 void removePackage(XmpPackage package_)
Removes the package.
package
- The package.com.aspose.ms.System.ArgumentNullException
- Package could not be null.public final void clearPackages()
Removes all XmpPackage
inside XMP.
Copyright © 2019. All rights reserved.