C# Класс iTextSharp.xmp.impl.XmpMetaImpl

Implementation for IXmpMeta. @since 17.02.2006
Наследование: XmpConst, IXmpMeta
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AppendArrayItem ( string schemaNs, string arrayName, PropertyOptions arrayOptions, string itemValue, PropertyOptions itemOptions ) : void
AppendArrayItem ( string schemaNs, string arrayName, string itemValue ) : void
Clone ( ) : object

Performs a deep clone of the XMPMeta-object

CountArrayItems ( string schemaNs, string arrayName ) : int
DeleteArrayItem ( string schemaNs, string arrayName, int itemIndex ) : void
DeleteProperty ( string schemaNs, string propName ) : void
DeleteQualifier ( string schemaNs, string propName, string qualNs, string qualName ) : void
DeleteStructField ( string schemaNs, string structName, string fieldNs, string fieldName ) : void
DoesArrayItemExist ( string schemaNs, string arrayName, int itemIndex ) : bool
DoesPropertyExist ( string schemaNs, string propName ) : bool
DoesQualifierExist ( string schemaNs, string propName, string qualNs, string qualName ) : bool
DoesStructFieldExist ( string schemaNs, string structName, string fieldNs, string fieldName ) : bool
DumpObject ( ) : string
GetArrayItem ( string schemaNs, string arrayName, int itemIndex ) : IXmpProperty
GetLocalizedText ( string schemaNs, string altTextName, string genericLang, string specificLang ) : IXmpProperty
GetProperty ( string schemaNs, string propName ) : IXmpProperty
GetPropertyBase64 ( string schemaNs, string propName ) : sbyte[]
GetPropertyBoolean ( string schemaNs, string propName ) : bool?
GetPropertyCalendar ( string schemaNs, string propName ) : DateTime
GetPropertyDate ( string schemaNs, string propName ) : IXmpDateTime
GetPropertyDouble ( string schemaNs, string propName ) : double?
GetPropertyInteger ( string schemaNs, string propName ) : int?
GetPropertyLong ( string schemaNs, string propName ) : long?
GetPropertyString ( string schemaNs, string propName ) : string
GetQualifier ( string schemaNs, string propName, string qualNs, string qualName ) : IXmpProperty
GetStructField ( string schemaNs, string structName, string fieldNs, string fieldName ) : IXmpProperty
InsertArrayItem ( string schemaNs, string arrayName, int itemIndex, string itemValue ) : void
InsertArrayItem ( string schemaNs, string arrayName, int itemIndex, string itemValue, PropertyOptions options ) : void
Iterator ( ) : IXmpIterator
Iterator ( IteratorOptions options ) : IXmpIterator
Iterator ( string schemaNs, string propName, IteratorOptions options ) : IXmpIterator
Normalize ( ParseOptions options ) : void
SetArrayItem ( string schemaNs, string arrayName, int itemIndex, string itemValue ) : void
SetArrayItem ( string schemaNs, string arrayName, int itemIndex, string itemValue, PropertyOptions options ) : void
SetLocalizedText ( string schemaNs, string altTextName, string genericLang, string specificLang, string itemValue ) : void
SetLocalizedText ( string schemaNs, string altTextName, string genericLang, string specificLang, string itemValue, PropertyOptions options ) : void
SetProperty ( string schemaNs, string propName, object propValue ) : void
SetProperty ( string schemaNs, string propName, object propValue, PropertyOptions options ) : void
SetPropertyBase64 ( string schemaNs, string propName, sbyte propValue ) : void
SetPropertyBase64 ( string schemaNs, string propName, sbyte propValue, PropertyOptions options ) : void
SetPropertyBoolean ( string schemaNs, string propName, bool propValue ) : void
SetPropertyBoolean ( string schemaNs, string propName, bool propValue, PropertyOptions options ) : void
SetPropertyCalendar ( string schemaNs, string propName, DateTime propValue ) : void
SetPropertyCalendar ( string schemaNs, string propName, DateTime propValue, PropertyOptions options ) : void
SetPropertyDate ( string schemaNs, string propName, IXmpDateTime propValue ) : void
SetPropertyDate ( string schemaNs, string propName, IXmpDateTime propValue, PropertyOptions options ) : void
SetPropertyDouble ( string schemaNs, string propName, double propValue ) : void
SetPropertyDouble ( string schemaNs, string propName, double propValue, PropertyOptions options ) : void
SetPropertyInteger ( string schemaNs, string propName, int propValue ) : void
SetPropertyInteger ( string schemaNs, string propName, int propValue, PropertyOptions options ) : void
SetPropertyLong ( string schemaNs, string propName, long propValue ) : void
SetPropertyLong ( string schemaNs, string propName, long propValue, PropertyOptions options ) : void
SetQualifier ( string schemaNs, string propName, string qualNs, string qualName, string qualValue ) : void
SetQualifier ( string schemaNs, string propName, string qualNs, string qualName, string qualValue, PropertyOptions options ) : void
SetStructField ( string schemaNs, string structName, string fieldNs, string fieldName, string fieldValue ) : void
SetStructField ( string schemaNs, string structName, string fieldNs, string fieldName, string fieldValue, PropertyOptions options ) : void
Sort ( ) : void
XmpMetaImpl ( ) : System

Constructor for an empty metadata object.

XmpMetaImpl ( XmpNode tree ) : System

Constructor for a cloned metadata tree.

Защищенные методы

Метод Описание
GetProperty ( string schemaNs, string propName, int valueType ) : IXmpProperty

Returns a property, but the result value can be requested. It can be one of XMPMetaImpl#VALUE_STRING, XMPMetaImpl#VALUE_BOOLEAN, XMPMetaImpl#VALUE_INTEGER, XMPMetaImpl#VALUE_LONG, XMPMetaImpl#VALUE_DOUBLE, XMPMetaImpl#VALUE_DATE, XMPMetaImpl#VALUE_CALENDAR, XMPMetaImpl#VALUE_BASE64.

GetPropertyObject ( string schemaNs, string propName, int valueType ) : object

Returns a property, but the result value can be requested.

Приватные методы

Метод Описание
DoSetArrayItem ( XmpNode arrayNode, int itemIndex, string itemValue, PropertyOptions itemOptions, bool insert ) : void

Locate or create the item node and set the value. Note the index parameter is one-based! The index can be in the range [1..size + 1] or "last()", normalize it and check the insert flags. The order of the normalization checks is important. If the array is empty we end up with an index and location to set item size + 1.

SetNode ( XmpNode node, object value, PropertyOptions newOptions, bool deleteExisting ) : void

The internals for SetProperty() and related calls, used after the node is found or created.

evaluateNodeValue ( int valueType, XmpNode propNode ) : object

Evaluates a raw node value to the given value type, apply special conversions for defined types in XMP.

Описание методов

AppendArrayItem() публичный Метод

public AppendArrayItem ( string schemaNs, string arrayName, PropertyOptions arrayOptions, string itemValue, PropertyOptions itemOptions ) : void
schemaNs string
arrayName string
arrayOptions iTextSharp.xmp.options.PropertyOptions
itemValue string
itemOptions iTextSharp.xmp.options.PropertyOptions
Результат void

AppendArrayItem() публичный Метод

public AppendArrayItem ( string schemaNs, string arrayName, string itemValue ) : void
schemaNs string
arrayName string
itemValue string
Результат void

Clone() публичный Метод

Performs a deep clone of the XMPMeta-object
public Clone ( ) : object
Результат object

CountArrayItems() публичный Метод

public CountArrayItems ( string schemaNs, string arrayName ) : int
schemaNs string
arrayName string
Результат int

DeleteArrayItem() публичный Метод

public DeleteArrayItem ( string schemaNs, string arrayName, int itemIndex ) : void
schemaNs string
arrayName string
itemIndex int
Результат void

DeleteProperty() публичный Метод

public DeleteProperty ( string schemaNs, string propName ) : void
schemaNs string
propName string
Результат void

DeleteQualifier() публичный Метод

public DeleteQualifier ( string schemaNs, string propName, string qualNs, string qualName ) : void
schemaNs string
propName string
qualNs string
qualName string
Результат void

DeleteStructField() публичный Метод

public DeleteStructField ( string schemaNs, string structName, string fieldNs, string fieldName ) : void
schemaNs string
structName string
fieldNs string
fieldName string
Результат void

DoesArrayItemExist() публичный Метод

public DoesArrayItemExist ( string schemaNs, string arrayName, int itemIndex ) : bool
schemaNs string
arrayName string
itemIndex int
Результат bool

DoesPropertyExist() публичный Метод

public DoesPropertyExist ( string schemaNs, string propName ) : bool
schemaNs string
propName string
Результат bool

DoesQualifierExist() публичный Метод

public DoesQualifierExist ( string schemaNs, string propName, string qualNs, string qualName ) : bool
schemaNs string
propName string
qualNs string
qualName string
Результат bool

DoesStructFieldExist() публичный Метод

public DoesStructFieldExist ( string schemaNs, string structName, string fieldNs, string fieldName ) : bool
schemaNs string
structName string
fieldNs string
fieldName string
Результат bool

DumpObject() публичный Метод

public DumpObject ( ) : string
Результат string

GetArrayItem() публичный Метод

public GetArrayItem ( string schemaNs, string arrayName, int itemIndex ) : IXmpProperty
schemaNs string
arrayName string
itemIndex int
Результат IXmpProperty

GetLocalizedText() публичный Метод

public GetLocalizedText ( string schemaNs, string altTextName, string genericLang, string specificLang ) : IXmpProperty
schemaNs string
altTextName string
genericLang string
specificLang string
Результат IXmpProperty

GetProperty() публичный Метод

public GetProperty ( string schemaNs, string propName ) : IXmpProperty
schemaNs string
propName string
Результат IXmpProperty

GetProperty() защищенный Метод

Returns a property, but the result value can be requested. It can be one of XMPMetaImpl#VALUE_STRING, XMPMetaImpl#VALUE_BOOLEAN, XMPMetaImpl#VALUE_INTEGER, XMPMetaImpl#VALUE_LONG, XMPMetaImpl#VALUE_DOUBLE, XMPMetaImpl#VALUE_DATE, XMPMetaImpl#VALUE_CALENDAR, XMPMetaImpl#VALUE_BASE64.
/// Collects any exception that occurs.
protected GetProperty ( string schemaNs, string propName, int valueType ) : IXmpProperty
schemaNs string /// a schema namespace
propName string /// a property name or path
valueType int /// the type of the value, see VALUE_...
Результат IXmpProperty

GetPropertyBase64() публичный Метод

public GetPropertyBase64 ( string schemaNs, string propName ) : sbyte[]
schemaNs string
propName string
Результат sbyte[]

GetPropertyBoolean() публичный Метод

public GetPropertyBoolean ( string schemaNs, string propName ) : bool?
schemaNs string
propName string
Результат bool?

GetPropertyCalendar() публичный Метод

public GetPropertyCalendar ( string schemaNs, string propName ) : DateTime
schemaNs string
propName string
Результат DateTime

GetPropertyDate() публичный Метод

public GetPropertyDate ( string schemaNs, string propName ) : IXmpDateTime
schemaNs string
propName string
Результат IXmpDateTime

GetPropertyDouble() публичный Метод

public GetPropertyDouble ( string schemaNs, string propName ) : double?
schemaNs string
propName string
Результат double?

GetPropertyInteger() публичный Метод

public GetPropertyInteger ( string schemaNs, string propName ) : int?
schemaNs string
propName string
Результат int?

GetPropertyLong() публичный Метод

public GetPropertyLong ( string schemaNs, string propName ) : long?
schemaNs string
propName string
Результат long?

GetPropertyObject() защищенный Метод

Returns a property, but the result value can be requested.
/// Collects any exception that occurs.
protected GetPropertyObject ( string schemaNs, string propName, int valueType ) : object
schemaNs string /// a schema namespace
propName string /// a property name or path
valueType int /// the type of the value, see VALUE_...
Результат object

GetPropertyString() публичный Метод

public GetPropertyString ( string schemaNs, string propName ) : string
schemaNs string
propName string
Результат string

GetQualifier() публичный Метод

public GetQualifier ( string schemaNs, string propName, string qualNs, string qualName ) : IXmpProperty
schemaNs string
propName string
qualNs string
qualName string
Результат IXmpProperty

GetStructField() публичный Метод

public GetStructField ( string schemaNs, string structName, string fieldNs, string fieldName ) : IXmpProperty
schemaNs string
structName string
fieldNs string
fieldName string
Результат IXmpProperty

InsertArrayItem() публичный Метод

public InsertArrayItem ( string schemaNs, string arrayName, int itemIndex, string itemValue ) : void
schemaNs string
arrayName string
itemIndex int
itemValue string
Результат void

InsertArrayItem() публичный Метод

public InsertArrayItem ( string schemaNs, string arrayName, int itemIndex, string itemValue, PropertyOptions options ) : void
schemaNs string
arrayName string
itemIndex int
itemValue string
options PropertyOptions
Результат void

Iterator() публичный Метод

public Iterator ( ) : IXmpIterator
Результат IXmpIterator

Iterator() публичный Метод

public Iterator ( IteratorOptions options ) : IXmpIterator
options IteratorOptions
Результат IXmpIterator

Iterator() публичный Метод

public Iterator ( string schemaNs, string propName, IteratorOptions options ) : IXmpIterator
schemaNs string
propName string
options IteratorOptions
Результат IXmpIterator

Normalize() публичный Метод

public Normalize ( ParseOptions options ) : void
options ParseOptions
Результат void

SetArrayItem() публичный Метод

public SetArrayItem ( string schemaNs, string arrayName, int itemIndex, string itemValue ) : void
schemaNs string
arrayName string
itemIndex int
itemValue string
Результат void

SetArrayItem() публичный Метод

public SetArrayItem ( string schemaNs, string arrayName, int itemIndex, string itemValue, PropertyOptions options ) : void
schemaNs string
arrayName string
itemIndex int
itemValue string
options PropertyOptions
Результат void

SetLocalizedText() публичный Метод

public SetLocalizedText ( string schemaNs, string altTextName, string genericLang, string specificLang, string itemValue ) : void
schemaNs string
altTextName string
genericLang string
specificLang string
itemValue string
Результат void

SetLocalizedText() публичный Метод

public SetLocalizedText ( string schemaNs, string altTextName, string genericLang, string specificLang, string itemValue, PropertyOptions options ) : void
schemaNs string
altTextName string
genericLang string
specificLang string
itemValue string
options PropertyOptions
Результат void

SetProperty() публичный Метод

public SetProperty ( string schemaNs, string propName, object propValue ) : void
schemaNs string
propName string
propValue object
Результат void

SetProperty() публичный Метод

public SetProperty ( string schemaNs, string propName, object propValue, PropertyOptions options ) : void
schemaNs string
propName string
propValue object
options PropertyOptions
Результат void

SetPropertyBase64() публичный Метод

public SetPropertyBase64 ( string schemaNs, string propName, sbyte propValue ) : void
schemaNs string
propName string
propValue sbyte
Результат void

SetPropertyBase64() публичный Метод

public SetPropertyBase64 ( string schemaNs, string propName, sbyte propValue, PropertyOptions options ) : void
schemaNs string
propName string
propValue sbyte
options PropertyOptions
Результат void

SetPropertyBoolean() публичный Метод

public SetPropertyBoolean ( string schemaNs, string propName, bool propValue ) : void
schemaNs string
propName string
propValue bool
Результат void

SetPropertyBoolean() публичный Метод

public SetPropertyBoolean ( string schemaNs, string propName, bool propValue, PropertyOptions options ) : void
schemaNs string
propName string
propValue bool
options PropertyOptions
Результат void

SetPropertyCalendar() публичный Метод

public SetPropertyCalendar ( string schemaNs, string propName, DateTime propValue ) : void
schemaNs string
propName string
propValue DateTime
Результат void

SetPropertyCalendar() публичный Метод

public SetPropertyCalendar ( string schemaNs, string propName, DateTime propValue, PropertyOptions options ) : void
schemaNs string
propName string
propValue DateTime
options PropertyOptions
Результат void

SetPropertyDate() публичный Метод

public SetPropertyDate ( string schemaNs, string propName, IXmpDateTime propValue ) : void
schemaNs string
propName string
propValue IXmpDateTime
Результат void

SetPropertyDate() публичный Метод

public SetPropertyDate ( string schemaNs, string propName, IXmpDateTime propValue, PropertyOptions options ) : void
schemaNs string
propName string
propValue IXmpDateTime
options PropertyOptions
Результат void

SetPropertyDouble() публичный Метод

public SetPropertyDouble ( string schemaNs, string propName, double propValue ) : void
schemaNs string
propName string
propValue double
Результат void

SetPropertyDouble() публичный Метод

public SetPropertyDouble ( string schemaNs, string propName, double propValue, PropertyOptions options ) : void
schemaNs string
propName string
propValue double
options PropertyOptions
Результат void

SetPropertyInteger() публичный Метод

public SetPropertyInteger ( string schemaNs, string propName, int propValue ) : void
schemaNs string
propName string
propValue int
Результат void

SetPropertyInteger() публичный Метод

public SetPropertyInteger ( string schemaNs, string propName, int propValue, PropertyOptions options ) : void
schemaNs string
propName string
propValue int
options PropertyOptions
Результат void

SetPropertyLong() публичный Метод

public SetPropertyLong ( string schemaNs, string propName, long propValue ) : void
schemaNs string
propName string
propValue long
Результат void

SetPropertyLong() публичный Метод

public SetPropertyLong ( string schemaNs, string propName, long propValue, PropertyOptions options ) : void
schemaNs string
propName string
propValue long
options PropertyOptions
Результат void

SetQualifier() публичный Метод

public SetQualifier ( string schemaNs, string propName, string qualNs, string qualName, string qualValue ) : void
schemaNs string
propName string
qualNs string
qualName string
qualValue string
Результат void

SetQualifier() публичный Метод

public SetQualifier ( string schemaNs, string propName, string qualNs, string qualName, string qualValue, PropertyOptions options ) : void
schemaNs string
propName string
qualNs string
qualName string
qualValue string
options PropertyOptions
Результат void

SetStructField() публичный Метод

public SetStructField ( string schemaNs, string structName, string fieldNs, string fieldName, string fieldValue ) : void
schemaNs string
structName string
fieldNs string
fieldName string
fieldValue string
Результат void

SetStructField() публичный Метод

public SetStructField ( string schemaNs, string structName, string fieldNs, string fieldName, string fieldValue, PropertyOptions options ) : void
schemaNs string
structName string
fieldNs string
fieldName string
fieldValue string
options PropertyOptions
Результат void

Sort() публичный Метод

public Sort ( ) : void
Результат void

XmpMetaImpl() публичный Метод

Constructor for an empty metadata object.
public XmpMetaImpl ( ) : System
Результат System

XmpMetaImpl() публичный Метод

Constructor for a cloned metadata tree.
public XmpMetaImpl ( XmpNode tree ) : System
tree XmpNode /// an prefilled metadata tree which fulfills all /// XMPNode contracts.
Результат System