Class XMPMetaImpl
Implementation for XMPMeta .
public class XMPMetaImpl : XMPConst, XMPMeta
- Inheritance
-
XMPMetaImpl
- Implements
- Inherited Members
Constructors
XMPMetaImpl()
Constructor for an empty metadata object.
public XMPMetaImpl()
XMPMetaImpl(XMPNode)
Constructor for a cloned metadata tree.
public XMPMetaImpl(XMPNode tree)
Parameters
tree
XMPNodean prefilled metadata tree which fulfills all
contracts.XMPNode
Methods
AppendArrayItem(string, string, string)
public virtual void AppendArrayItem(string schemaNS, string arrayName, string itemValue)
Parameters
AppendArrayItem(string, string, PropertyOptions, string, PropertyOptions)
public virtual void AppendArrayItem(string schemaNS, string arrayName, PropertyOptions arrayOptions, string itemValue, PropertyOptions itemOptions)
Parameters
schemaNS
stringarrayName
stringarrayOptions
PropertyOptionsitemValue
stringitemOptions
PropertyOptions
Clone()
Performs a deep clone of the XMPMeta-object
public virtual object Clone()
Returns
CountArrayItems(string, string)
public virtual int CountArrayItems(string schemaNS, string arrayName)
Parameters
Returns
DeleteArrayItem(string, string, int)
public virtual void DeleteArrayItem(string schemaNS, string arrayName, int itemIndex)
Parameters
DeleteProperty(string, string)
public virtual void DeleteProperty(string schemaNS, string propName)
Parameters
DeleteQualifier(string, string, string, string)
public virtual void DeleteQualifier(string schemaNS, string propName, string qualNS, string qualName)
Parameters
DeleteStructField(string, string, string, string)
public virtual void DeleteStructField(string schemaNS, string structName, string fieldNS, string fieldName)
Parameters
DoesArrayItemExist(string, string, int)
public virtual bool DoesArrayItemExist(string schemaNS, string arrayName, int itemIndex)
Parameters
Returns
DoesPropertyExist(string, string)
public virtual bool DoesPropertyExist(string schemaNS, string propName)
Parameters
Returns
DoesQualifierExist(string, string, string, string)
public virtual bool DoesQualifierExist(string schemaNS, string propName, string qualNS, string qualName)
Parameters
Returns
DoesStructFieldExist(string, string, string, string)
public virtual bool DoesStructFieldExist(string schemaNS, string structName, string fieldNS, string fieldName)
Parameters
Returns
DumpObject()
public virtual string DumpObject()
Returns
GetArrayItem(string, string, int)
public virtual XMPProperty GetArrayItem(string schemaNS, string arrayName, int itemIndex)
Parameters
Returns
GetLocalizedText(string, string, string, string)
public virtual XMPProperty GetLocalizedText(string schemaNS, string altTextName, string genericLang, string specificLang)
Parameters
Returns
GetObjectName()
public virtual string GetObjectName()
Returns
GetPacketHeader()
Returns the unparsed content of the <?xpacket> processing instruction.
This contains normally the attribute-like elements 'begin="<BOM>"
id="W5M0MpCehiHzreSzNTczkc9d"' and possibly the deprecated elements 'bytes="1234"' or
'encoding="XXX"'. If the parsed packet has not been wrapped into an xpacket,
null
is returned.
public virtual string GetPacketHeader()
Returns
GetProperty(string, string)
public virtual XMPProperty GetProperty(string schemaNS, string propName)
Parameters
Returns
GetProperty(string, string, int)
Returns a property, but the result value can be requested.
protected virtual XMPProperty GetProperty(string schemaNS, string propName, int valueType)
Parameters
schemaNS
stringa schema namespace
propName
stringa property name or path
valueType
intthe type of the value, see VALUE_...
Returns
- XMPProperty
Returns an
XMPProperty
Remarks
Returns a property, but the result value can be requested. It can be one of iText.Kernel.XMP.Impl.XMPMetaImpl.VALUE_STRING , iText.Kernel.XMP.Impl.XMPMetaImpl.VALUE_BOOLEAN , iText.Kernel.XMP.Impl.XMPMetaImpl.VALUE_INTEGER , iText.Kernel.XMP.Impl.XMPMetaImpl.VALUE_LONG , iText.Kernel.XMP.Impl.XMPMetaImpl.VALUE_DOUBLE , iText.Kernel.XMP.Impl.XMPMetaImpl.VALUE_DATE , iText.Kernel.XMP.Impl.XMPMetaImpl.VALUE_CALENDAR , iText.Kernel.XMP.Impl.XMPMetaImpl.VALUE_BASE64 .
Exceptions
- XMPException
Collects any exception that occurs.
- See Also
GetPropertyBase64(string, string)
public virtual byte[] GetPropertyBase64(string schemaNS, string propName)
Parameters
Returns
- byte[]
GetPropertyBoolean(string, string)
public virtual bool? GetPropertyBoolean(string schemaNS, string propName)
Parameters
Returns
- bool?
GetPropertyCalendar(string, string)
public virtual DateTime GetPropertyCalendar(string schemaNS, string propName)
Parameters
Returns
GetPropertyDate(string, string)
public virtual XMPDateTime GetPropertyDate(string schemaNS, string propName)
Parameters
Returns
GetPropertyDouble(string, string)
public virtual double? GetPropertyDouble(string schemaNS, string propName)
Parameters
Returns
GetPropertyInteger(string, string)
public virtual int? GetPropertyInteger(string schemaNS, string propName)
Parameters
Returns
- int?
GetPropertyLong(string, string)
public virtual long? GetPropertyLong(string schemaNS, string propName)
Parameters
Returns
- long?
GetPropertyObject(string, string, int)
Returns a property, but the result value can be requested.
protected virtual object GetPropertyObject(string schemaNS, string propName, int valueType)
Parameters
schemaNS
stringa schema namespace
propName
stringa property name or path
valueType
intthe type of the value, see VALUE_...
Returns
- object
Returns the node value as an object according to the
.valueType
Exceptions
- XMPException
Collects any exception that occurs.
- See Also
GetPropertyString(string, string)
public virtual string GetPropertyString(string schemaNS, string propName)
Parameters
Returns
GetQualifier(string, string, string, string)
public virtual XMPProperty GetQualifier(string schemaNS, string propName, string qualNS, string qualName)
Parameters
Returns
GetRoot()
public virtual XMPNode GetRoot()
Returns
- XMPNode
Returns the root node of the XMP tree.
GetStructField(string, string, string, string)
public virtual XMPProperty GetStructField(string schemaNS, string structName, string fieldNS, string fieldName)
Parameters
Returns
InsertArrayItem(string, string, int, string)
public virtual void InsertArrayItem(string schemaNS, string arrayName, int itemIndex, string itemValue)
Parameters
InsertArrayItem(string, string, int, string, PropertyOptions)
public virtual void InsertArrayItem(string schemaNS, string arrayName, int itemIndex, string itemValue, PropertyOptions options)
Parameters
schemaNS
stringarrayName
stringitemIndex
intitemValue
stringoptions
PropertyOptions
Iterator()
public virtual XMPIterator Iterator()
Returns
Iterator(string, string, IteratorOptions)
public virtual XMPIterator Iterator(string schemaNS, string propName, IteratorOptions options)
Parameters
schemaNS
stringpropName
stringoptions
IteratorOptions
Returns
Iterator(IteratorOptions)
public virtual XMPIterator Iterator(IteratorOptions options)
Parameters
options
IteratorOptions
Returns
Normalize(ParseOptions)
public virtual void Normalize(ParseOptions options)
Parameters
options
ParseOptions
SetArrayItem(string, string, int, string)
public virtual void SetArrayItem(string schemaNS, string arrayName, int itemIndex, string itemValue)
Parameters
SetArrayItem(string, string, int, string, PropertyOptions)
public virtual void SetArrayItem(string schemaNS, string arrayName, int itemIndex, string itemValue, PropertyOptions options)
Parameters
schemaNS
stringarrayName
stringitemIndex
intitemValue
stringoptions
PropertyOptions
SetLocalizedText(string, string, string, string, string)
public virtual void SetLocalizedText(string schemaNS, string altTextName, string genericLang, string specificLang, string itemValue)
Parameters
SetLocalizedText(string, string, string, string, string, PropertyOptions)
public virtual void SetLocalizedText(string schemaNS, string altTextName, string genericLang, string specificLang, string itemValue, PropertyOptions options)
Parameters
schemaNS
stringaltTextName
stringgenericLang
stringspecificLang
stringitemValue
stringoptions
PropertyOptions
SetObjectName(string)
Sets the name of the XMP object.
public virtual void SetObjectName(string name)
Parameters
name
string
SetPacketHeader(string)
Sets the packetHeader attributes, only used by the parser.
public virtual void SetPacketHeader(string packetHeader)
Parameters
packetHeader
stringthe processing instruction content
SetProperty(string, string, object)
public virtual void SetProperty(string schemaNS, string propName, object propValue)
Parameters
SetProperty(string, string, object, PropertyOptions)
public virtual void SetProperty(string schemaNS, string propName, object propValue, PropertyOptions options)
Parameters
schemaNS
stringpropName
stringpropValue
objectoptions
PropertyOptions
SetPropertyBase64(string, string, byte[])
public virtual void SetPropertyBase64(string schemaNS, string propName, byte[] propValue)
Parameters
SetPropertyBase64(string, string, byte[], PropertyOptions)
public virtual void SetPropertyBase64(string schemaNS, string propName, byte[] propValue, PropertyOptions options)
Parameters
schemaNS
stringpropName
stringpropValue
byte[]options
PropertyOptions
SetPropertyBoolean(string, string, bool)
public virtual void SetPropertyBoolean(string schemaNS, string propName, bool propValue)
Parameters
SetPropertyBoolean(string, string, bool, PropertyOptions)
public virtual void SetPropertyBoolean(string schemaNS, string propName, bool propValue, PropertyOptions options)
Parameters
schemaNS
stringpropName
stringpropValue
booloptions
PropertyOptions
SetPropertyCalendar(string, string, DateTime)
public virtual void SetPropertyCalendar(string schemaNS, string propName, DateTime propValue)
Parameters
SetPropertyCalendar(string, string, DateTime, PropertyOptions)
public virtual void SetPropertyCalendar(string schemaNS, string propName, DateTime propValue, PropertyOptions options)
Parameters
schemaNS
stringpropName
stringpropValue
DateTimeoptions
PropertyOptions
SetPropertyDate(string, string, XMPDateTime)
public virtual void SetPropertyDate(string schemaNS, string propName, XMPDateTime propValue)
Parameters
schemaNS
stringpropName
stringpropValue
XMPDateTime
SetPropertyDate(string, string, XMPDateTime, PropertyOptions)
public virtual void SetPropertyDate(string schemaNS, string propName, XMPDateTime propValue, PropertyOptions options)
Parameters
schemaNS
stringpropName
stringpropValue
XMPDateTimeoptions
PropertyOptions
SetPropertyDouble(string, string, double)
public virtual void SetPropertyDouble(string schemaNS, string propName, double propValue)
Parameters
SetPropertyDouble(string, string, double, PropertyOptions)
public virtual void SetPropertyDouble(string schemaNS, string propName, double propValue, PropertyOptions options)
Parameters
schemaNS
stringpropName
stringpropValue
doubleoptions
PropertyOptions
SetPropertyInteger(string, string, int)
public virtual void SetPropertyInteger(string schemaNS, string propName, int propValue)
Parameters
SetPropertyInteger(string, string, int, PropertyOptions)
public virtual void SetPropertyInteger(string schemaNS, string propName, int propValue, PropertyOptions options)
Parameters
schemaNS
stringpropName
stringpropValue
intoptions
PropertyOptions
SetPropertyLong(string, string, long)
public virtual void SetPropertyLong(string schemaNS, string propName, long propValue)
Parameters
SetPropertyLong(string, string, long, PropertyOptions)
public virtual void SetPropertyLong(string schemaNS, string propName, long propValue, PropertyOptions options)
Parameters
schemaNS
stringpropName
stringpropValue
longoptions
PropertyOptions
SetQualifier(string, string, string, string, string)
public virtual void SetQualifier(string schemaNS, string propName, string qualNS, string qualName, string qualValue)
Parameters
SetQualifier(string, string, string, string, string, PropertyOptions)
public virtual void SetQualifier(string schemaNS, string propName, string qualNS, string qualName, string qualValue, PropertyOptions options)
Parameters
schemaNS
stringpropName
stringqualNS
stringqualName
stringqualValue
stringoptions
PropertyOptions
SetStructField(string, string, string, string, string)
public virtual void SetStructField(string schemaNS, string structName, string fieldNS, string fieldName, string fieldValue)
Parameters
SetStructField(string, string, string, string, string, PropertyOptions)
public virtual void SetStructField(string schemaNS, string structName, string fieldNS, string fieldName, string fieldValue, PropertyOptions options)
Parameters
schemaNS
stringstructName
stringfieldNS
stringfieldName
stringfieldValue
stringoptions
PropertyOptions
Sort()
public virtual void Sort()