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(com.aspose.imaging.xmp.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.
|
com.aspose.imaging.xmp.XmpPackage |
getPackage(String namespaceUri)
Gets package by namespace URI.
|
com.aspose.imaging.xmp.XmpPackage[] |
getPackages()
Gets array of
XmpPackage inside XMP. |
int |
getPackagesCount()
Gets amount of packages inside XMP structure.
|
XmpRdfRoot |
getRdfRoot_internalized()
Gets the root RDF element.
|
XmpTrailerPi |
getTrailerPi()
Gets the trailer processing instruction.
|
String |
getXmlValue_internalized()
Converts XMP value to the XML representation.
|
void |
removePackage(com.aspose.imaging.xmp.XmpPackage package_)
Removes the XMP package.
|
void |
setHeaderPi_internalized(XmpHeaderPi value)
Gets the header processing instruction.
|
void |
setMeta(XmpMeta value)
Gets the XMP meta.
|
void |
setRdfRoot_internalized(XmpRdfRoot value)
Gets the root RDF element.
|
void |
setTrailerPi_internalized(XmpTrailerPi value)
Gets the trailer processing instruction.
|
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.
Value: The Header processing instruction.public void setHeaderPi_internalized(XmpHeaderPi value)
Gets the header processing instruction.
Value: The Header processing instruction.public XmpMeta getMeta()
Gets the XMP meta. Optional.
Value: The XMP meta. Optional.public void setMeta(XmpMeta value)
Gets the XMP meta. Optional.
Value: The XMP meta. Optional.public XmpTrailerPi getTrailerPi()
Gets the trailer processing instruction.
Value: Trailer processing instruction.public void setTrailerPi_internalized(XmpTrailerPi value)
Gets the trailer processing instruction.
Value: Trailer processing instruction.public com.aspose.imaging.xmp.XmpPackage[] getPackages()
Gets array of XmpPackage
inside XMP.
XmpPackage
inside XMP.public int getPackagesCount()
Gets amount of packages inside XMP structure.
Value: The amount of packages inside XMP structure.public XmpRdfRoot getRdfRoot_internalized()
Gets the root RDF element.
Value: The RDF root element.public void setRdfRoot_internalized(XmpRdfRoot value)
Gets the root RDF element.
Value: The RDF root element.public void addPackage(com.aspose.imaging.xmp.XmpPackage package_)
Adds the package.
package_
- The package.public com.aspose.imaging.xmp.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(com.aspose.imaging.xmp.XmpPackage package_)
Removes the XMP package.
package_
- The package.public void clearPackages()
Removes all XmpPackage
inside XMP.
public String getXmlValue_internalized()
Converts XMP value to the XML representation.
Copyright (c) 2008-2016 Aspose Pty Ltd. All Rights Reserved.