C# Класс TagLib.Xmp.XmpTag

Holds XMP (Extensible Metadata Platform) metadata.
Наследование: TagLib.Image.ImageTag
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
ADOBE_X_NS string
CRS_NS string
DC_NS string
EXIF_AUX_NS string
EXIF_NS string
JOB_NS string
MS_PHOTO_NS string
NamespacePrefixes string>.Dictionary
PHOTOSHOP_NS string
RDF_NS string
STDIM_NS string
TIFF_NS string
XAP_BJ_NS string
XAP_MM_NS string
XAP_NS string
XAP_RIGHTS_NS string
XMLNS_NS string
XML_NS string
XMPTG_NS string

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

Метод Описание
Clear ( ) : void

Clears the values stored in the current instance.

FindNode ( string ns, string name ) : XmpNode

Finds the node associated with the namespace ns and the name name.

GetCollectionNode ( string ns, string name ) : string[]

The method returns an array of System.String values which are the stored text of the child nodes of the node associated with the namespace ns and the name name.

GetLangAltNode ( string ns, string name ) : string

Searches for a node holding language alternatives. The return value is the value of the default language stored by the node. The node is identified by the namespace ns and the name name. If the default language is not set, an arbitrary one is chosen. It is also tried to return the value a simple text node, if no associated alt-node exists.

GetTextNode ( string ns, string name ) : string

Returns the text of the node associated with the namespace and the name name.

Render ( ) : string

Renders the current instance to an XMP System.String.

SetCollectionNode ( string ns, string name, string values, XmpNodeType type ) : void

Sets a System.String[] as texts to the children of the node associated with the namespace ns and the name name.

SetLangAltNode ( string ns, string name, string value ) : void

Stores a the given value as the default language value for the alt-node associated with the namespace ns and the name name. All other alternatives set, are deleted by this method.

SetTextNode ( string ns, string name, string value ) : void

Creates a new text node associated with the namespace ns and the name name.

XmpTag ( ) : System

Construct a new empty XmpTag.

XmpTag ( string data ) : System

Construct a new XmpTag, using the data parsed from the given string.

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

Метод Описание
AddNamespacePrefix ( string prefix, string ns ) : void
CreateAttribute ( XmlDocument doc, string name, string ns ) : XmlAttribute
CreateNode ( XmlDocument doc, string name, string ns ) : XmlNode
CreateTextPropertyWithQualifiers ( XmlNode node, string value ) : XmpNode
EnsureNamespacePrefix ( string ns ) : void

Make sure there's a suitable prefix mapped for the given namespace URI.

Initialize ( ) : void
NewNode ( string ns, string name ) : XmpNode
NewNode ( string ns, string name, XmpNodeType type ) : XmpNode
ParseEmptyPropertyElement ( XmpNode parent, XmlNode node ) : void
ParseLiteralPropertyElement ( XmpNode parent, XmlNode node ) : void
ParseNodeElement ( XmpNode parent, XmlNode node ) : void
ParseNodeElementList ( XmpNode parent, XmlNode xml_parent ) : void
ParsePropertyElement ( XmpNode parent, XmlNode node ) : void
ParseRDF ( XmlNode rdf_node ) : XmpNode
ParseResourcePropertyElement ( XmpNode parent, XmlNode node ) : void
ParseTypeResourcePropertyElement ( XmpNode parent, XmlNode node ) : void
PrepareNamespaces ( ) : void
RemoveNode ( string ns, string name ) : void

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

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

Clears the values stored in the current instance.
public Clear ( ) : void
Результат void

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

Finds the node associated with the namespace ns and the name name.
public FindNode ( string ns, string name ) : XmpNode
ns string /// A with the namespace of the node. ///
name string /// A with the name of the node. ///
Результат XmpNode

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

The method returns an array of System.String values which are the stored text of the child nodes of the node associated with the namespace ns and the name name.
public GetCollectionNode ( string ns, string name ) : string[]
ns string /// A with the namespace of the node. ///
name string /// A with the name of the node. ///
Результат string[]

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

Searches for a node holding language alternatives. The return value is the value of the default language stored by the node. The node is identified by the namespace ns and the name name. If the default language is not set, an arbitrary one is chosen. It is also tried to return the value a simple text node, if no associated alt-node exists.
public GetLangAltNode ( string ns, string name ) : string
ns string /// A with the namespace of the node. ///
name string /// A with the name of the node. ///
Результат string

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

Returns the text of the node associated with the namespace and the name name.
public GetTextNode ( string ns, string name ) : string
ns string /// A with the namespace of the node. ///
name string /// A with the name of the node. ///
Результат string

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

Renders the current instance to an XMP System.String.
public Render ( ) : string
Результат string

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

Sets a System.String[] as texts to the children of the node associated with the namespace ns and the name name.
public SetCollectionNode ( string ns, string name, string values, XmpNodeType type ) : void
ns string /// A with the namespace of the node. ///
name string /// A with the name of the node. ///
values string /// A with the values to set for the children. ///
type XmpNodeType /// A with the type of the parent node. ///
Результат void

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

Stores a the given value as the default language value for the alt-node associated with the namespace ns and the name name. All other alternatives set, are deleted by this method.
public SetLangAltNode ( string ns, string name, string value ) : void
ns string /// A with the namespace of the node. ///
name string /// A with the name of the node. ///
value string /// A with the value for the default language /// to set. If is given, a possibly existing node /// will be deleted. ///
Результат void

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

Creates a new text node associated with the namespace ns and the name name.
public SetTextNode ( string ns, string name, string value ) : void
ns string /// A with the namespace of the node. ///
name string /// A with the name of the node. ///
value string /// A with the value for the new node. /// If is given, a possibly existing node will /// be deleted. ///
Результат void

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

Construct a new empty XmpTag.
public XmpTag ( ) : System
Результат System

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

Construct a new XmpTag, using the data parsed from the given string.
public XmpTag ( string data ) : System
data string /// A containing an XMP packet. This should be a valid /// XMP block. ///
Результат System

Описание свойств

ADOBE_X_NS публичное статическое свойство

Adobe namespace
public static string ADOBE_X_NS
Результат string

CRS_NS публичное статическое свойство

Camera Raw Settings namespace
public static string CRS_NS
Результат string

DC_NS публичное статическое свойство

Dublin Core namespace
public static string DC_NS
Результат string

EXIF_AUX_NS публичное статическое свойство

Exif aux namespace
public static string EXIF_AUX_NS
Результат string

EXIF_NS публичное статическое свойство

Exif namespace
public static string EXIF_NS
Результат string

JOB_NS публичное статическое свойство

JOB namespace
public static string JOB_NS
Результат string

MS_PHOTO_NS публичное статическое свойство

Microsoft Photo namespace
public static string MS_PHOTO_NS
Результат string

NamespacePrefixes публичное статическое свойство

Mapping between full namespaces and their short prefix. Needs to be public for the unit test generator.
public static Dictionary NamespacePrefixes
Результат string>.Dictionary

PHOTOSHOP_NS публичное статическое свойство

Photoshop namespace
public static string PHOTOSHOP_NS
Результат string

RDF_NS публичное статическое свойство

RDF namespace
public static string RDF_NS
Результат string

STDIM_NS публичное статическое свойство

STDIM namespace
public static string STDIM_NS
Результат string

TIFF_NS публичное статическое свойство

TIFF namespace
public static string TIFF_NS
Результат string

XAP_BJ_NS публичное статическое свойство

XAP bj namespace
public static string XAP_BJ_NS
Результат string

XAP_MM_NS публичное статическое свойство

XAP mm namespace
public static string XAP_MM_NS
Результат string

XAP_NS публичное статическое свойство

XAP (XMP's previous name) namespace
public static string XAP_NS
Результат string

XAP_RIGHTS_NS публичное статическое свойство

XAP rights namespace
public static string XAP_RIGHTS_NS
Результат string

XMLNS_NS публичное статическое свойство

XMLNS namespace
public static string XMLNS_NS
Результат string

XML_NS публичное статическое свойство

XML namespace
public static string XML_NS
Результат string

XMPTG_NS публичное статическое свойство

XMP TPg (XMP Paged-Text) namespace
public static string XMPTG_NS
Результат string