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)
Gets 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.
Value: The header process instruction.public final XmpMeta getMeta()
Gets the XMP meta. Optional.
Value: The XMP meta.public final void setMeta(XmpMeta value)
Gets the XMP meta. Optional.
Value: The XMP meta.public final XmpTrailerPI getTrailerPI()
Trailer processing instruction.
Value: The trailer process instruction.public final XmpPackage[] getPackages()
Gets array of XmpPackage
inside XMP.
public final int getPackagesCount()
Gets amount of packages inside XMP structure.
Value: The packages count.public final XmpSchemes getSchemes()
Provides access to known XMP schemas.
Value: XMP schemes.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 © 2017. All rights reserved.