Class XmpPacketWrapper
Contains serialized xmp package including header and trailer.
public class XmpPacketWrapper
- Inheritance
-
XmpPacketWrapper
- Inherited Members
Remarks
A wrapper consisting of a pair of XML processing instructions (PIs) may be placed around the rdf:RDF element.
Constructors
XmpPacketWrapper()
Initializes a new instance of the XmpPacketWrapper class.
public XmpPacketWrapper()
XmpPacketWrapper(XmpHeaderPi, XmpTrailerPi, XmpMeta)
Initializes a new instance of the XmpPacketWrapper class.
public XmpPacketWrapper(XmpHeaderPi header, XmpTrailerPi trailer, XmpMeta xmpMeta)
Parameters
header
XmpHeaderPiThe XMP header of processing instruction.
trailer
XmpTrailerPiThe XMP trailer of processing instruction.
xmpMeta
XmpMetaThe XMP metadata.
Properties
HeaderPi
Gets the header processing instruction.
public XmpHeaderPi HeaderPi { get; }
Property Value
- XmpHeaderPi
The Header processing instruction.
Meta
Gets the XMP meta. Optional.
public XmpMeta Meta { get; set; }
Property Value
- XmpMeta
The XMP meta. Optional.
Packages
Gets array of XmpPackage inside XMP.
public XmpPackage[] Packages { get; }
Property Value
- XmpPackage[]
The array of XmpPackage inside XMP.
PackagesCount
Gets amount of packages inside XMP structure.
public int PackagesCount { get; }
Property Value
- int
The amount of packages inside XMP structure.
TrailerPi
Gets the trailer processing instruction.
public XmpTrailerPi TrailerPi { get; }
Property Value
- XmpTrailerPi
Trailer processing instruction.
Methods
AddPackage(XmpPackage)
Adds the package.
public void AddPackage(XmpPackage package)
Parameters
package
XmpPackageThe package.
ClearPackages()
Removes all XmpPackage inside XMP.
public void ClearPackages()
ContainsPackage(string)
Determines whethere package is exist in xmp wrapper.
public bool ContainsPackage(string namespaceUri)
Parameters
namespaceUri
stringPackage schema uri.
Returns
- bool
Returns true if package with specified namespace Uri exist in XMP wrapper.
GetPackage(string)
Gets package by namespace URI.
public XmpPackage GetPackage(string namespaceUri)
Parameters
namespaceUri
stringThe package schema URI.
Returns
- XmpPackage
Returns the XMP package for specified namespace URI.
Exceptions
- ArgumentNullException
namespaceUri
RemovePackage(XmpPackage)
Removes the XMP package.
public void RemovePackage(XmpPackage package)
Parameters
package
XmpPackageThe package.