Qyoto  4.0.5
Qyoto is a C# language binding for Qt
 All Classes Namespaces Functions Variables Typedefs Enumerations Properties
QtXml.QDomNamedNodeMap Class Reference

The QDomNamedNodeMap class contains a collection of nodes that can be accessed by name. More...

Inheritance diagram for QtXml.QDomNamedNodeMap:
Collaboration diagram for QtXml.QDomNamedNodeMap:

Public Member Functions

override bool Equals (object o)
 
override int GetHashCode ()
 
 QDomNamedNodeMap ()
 
 
 QDomNamedNodeMap (QDomNamedNodeMap arg1)
 
 
virtual void CreateProxy ()
 
new bool Contains (string name)
 
 
new int Count ()
 
 
new bool IsEmpty ()
 
 
new QDomNode Item (int index)
 
 
new uint Length ()
 
 
new QDomNode NamedItem (string name)
 
 
new QDomNode NamedItemNS (string nsURI, string localName)
 
 
new QDomNode RemoveNamedItem (string name)
 
 
new QDomNode RemoveNamedItemNS (string nsURI, string localName)
 
 
new QDomNode SetNamedItem (QDomNode newNode)
 
 
new QDomNode SetNamedItemNS (QDomNode newNode)
 
 
new int Size ()
 
 
new void Dispose ()
 

Static Public Member Functions

static bool operator!= (QDomNamedNodeMap arg1, QDomNamedNodeMap arg2)
 
 
static bool operator== (QDomNamedNodeMap arg1, QDomNamedNodeMap arg2)
 
 

Protected Member Functions

 QDomNamedNodeMap (System.Type dummy)
 

Protected Attributes

SmokeInvocation interceptor
 

Properties

virtual System.IntPtr SmokeObject [get, set]
 

Detailed Description

The QDomNamedNodeMap class contains a collection of nodes that can be accessed by name.

Note that QDomNamedNodeMap does not inherit from QDomNodeList. QDomNamedNodeMaps do not provide any specific node ordering. Although nodes in a QDomNamedNodeMap may be accessed by an ordinal index, this is simply to allow a convenient enumeration of the contents of a QDomNamedNodeMap, and does not imply that the DOM specifies an ordering of the nodes.

The QDomNamedNodeMap is used in three places:

QDomDocumentType::entities() returns a map of all entities described in the DTD.

QDomDocumentType::notations() returns a map of all notations described in the DTD.

QDomNode::attributes() returns a map of all attributes of an element.

Items in the map are identified by the name which QDomNode::name() returns. Nodes are retrieved using namedItem(), namedItemNS() or item(). New nodes are inserted with setNamedItem() or setNamedItemNS() and removed with removeNamedItem() or removeNamedItemNS(). Use contains() to see if an item with the given name is in the named node map. The number of items is returned by length().

Terminology: in this class we use "item" and "node" interchangeably.

Constructor & Destructor Documentation

QtXml.QDomNamedNodeMap.QDomNamedNodeMap ( System.Type  dummy)
protected
QtXml.QDomNamedNodeMap.QDomNamedNodeMap ( )

Constructs an empty named node map.

QtXml.QDomNamedNodeMap.QDomNamedNodeMap ( QDomNamedNodeMap  arg1)

Constructs a copy of n.

Member Function Documentation

new bool QtXml.QDomNamedNodeMap.Contains ( string  name)

Returns true if the map contains a node called name; otherwise returns false.

Note: This function does not take the presence of namespaces into account. Use namedItemNS() to test whether the map contains a node with a specific namespace URI and name.

new int QtXml.QDomNamedNodeMap.Count ( )

This function is provided for Qt API consistency. It is equivalent to length().

virtual void QtXml.QDomNamedNodeMap.CreateProxy ( )
virtual
new void QtXml.QDomNamedNodeMap.Dispose ( )
override bool QtXml.QDomNamedNodeMap.Equals ( object  o)
override int QtXml.QDomNamedNodeMap.GetHashCode ( )
new bool QtXml.QDomNamedNodeMap.IsEmpty ( )

Returns true if the map is empty; otherwise returns false. This function is provided for Qt API consistency.

new QDomNode QtXml.QDomNamedNodeMap.Item ( int  index)

Retrieves the node at position index.

This can be used to iterate over the map. Note that the nodes in the map are ordered arbitrarily.

See also length().

new uint QtXml.QDomNamedNodeMap.Length ( )

Returns the number of nodes in the map.

See also item().

new QDomNode QtXml.QDomNamedNodeMap.NamedItem ( string  name)

Returns the node called name.

If the named node map does not contain such a node, a null node is returned. A node's name is the name returned by QDomNode::nodeName().

See also setNamedItem() and namedItemNS().

new QDomNode QtXml.QDomNamedNodeMap.NamedItemNS ( string  nsURI,
string  localName 
)

Returns the node associated with the local name localName and the namespace URI nsURI.

If the map does not contain such a node, a null node is returned.

See also setNamedItemNS() and namedItem().

static bool QtXml.QDomNamedNodeMap.operator!= ( QDomNamedNodeMap  arg1,
QDomNamedNodeMap  arg2 
)
static

Returns true if n and this named node map are not equal; otherwise returns false.

static bool QtXml.QDomNamedNodeMap.operator== ( QDomNamedNodeMap  arg1,
QDomNamedNodeMap  arg2 
)
static

Returns true if n and this named node map are equal; otherwise returns false.

new QDomNode QtXml.QDomNamedNodeMap.RemoveNamedItem ( string  name)

Removes the node called name from the map.

The function returns the removed node or a null node if the map did not contain a node called name.

See also setNamedItem(), namedItem(), and removeNamedItemNS().

new QDomNode QtXml.QDomNamedNodeMap.RemoveNamedItemNS ( string  nsURI,
string  localName 
)

Removes the node with the local name localName and the namespace URI nsURI from the map.

The function returns the removed node or a null node if the map did not contain a node with the local name localName and the namespace URI nsURI.

See also setNamedItemNS(), namedItemNS(), and removeNamedItem().

new QDomNode QtXml.QDomNamedNodeMap.SetNamedItem ( QDomNode  newNode)

Inserts the node newNode into the named node map. The name used by the map is the node name of newNode as returned by QDomNode::nodeName().

If the new node replaces an existing node, i.e. the map contains a node with the same name, the replaced node is returned.

See also namedItem(), removeNamedItem(), and setNamedItemNS().

new QDomNode QtXml.QDomNamedNodeMap.SetNamedItemNS ( QDomNode  newNode)

Inserts the node newNode in the map. If a node with the same namespace URI and the same local name already exists in the map, it is replaced by newNode. If the new node replaces an existing node, the replaced node is returned.

See also namedItemNS(), removeNamedItemNS(), and setNamedItem().

new int QtXml.QDomNamedNodeMap.Size ( )

This function is provided for Qt API consistency. It is equivalent to length().

Member Data Documentation

SmokeInvocation QtXml.QDomNamedNodeMap.interceptor
protected

Property Documentation

virtual System.IntPtr QtXml.QDomNamedNodeMap.SmokeObject
getset