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

The QXmlAttributes class provides XML attributes. More...

Inheritance diagram for QtXml.QXmlAttributes:
Collaboration diagram for QtXml.QXmlAttributes:

Public Member Functions

 QXmlAttributes ()
 
 
 QXmlAttributes (QXmlAttributes copy)
 
 
virtual void CreateProxy ()
 
new void Append (string qName, string uri, string localPart, string value)
 
 
new void Clear ()
 
 
new int Count ()
 
 
new int Index (QLatin1String qName)
 
 
new int Index (string qName)
 
 
new int Index (string uri, string localPart)
 
 
new int Length ()
 
 
new string LocalName (int index)
 
 
new string qName (int index)
 
 
new string Type (int index)
 
 
new string Type (string qName)
 
 
new string Type (string uri, string localName)
 
 
new string Uri (int index)
 
 
new string Value (QLatin1String qName)
 
 
new string Value (int index)
 
 
new string Value (string qName)
 
 
new string Value (string uri, string localName)
 
 
new void Dispose ()
 

Protected Member Functions

 QXmlAttributes (System.Type dummy)
 

Protected Attributes

SmokeInvocation interceptor
 

Properties

virtual System.IntPtr SmokeObject [get, set]
 

Detailed Description

The QXmlAttributes class provides XML attributes.

If attributes are reported by QXmlContentHandler::startElement() this class is used to pass the attribute values.

Use index() to locate the position of an attribute in the list, count() to retrieve the number of attributes, and clear() to remove the attributes. New attributes can be added with append(). Use type() to get an attribute's type and value() to get its value. The attribute's name is available from localName() or qName(), and its namespace URI from uri().

Constructor & Destructor Documentation

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

Constructs an empty attribute list.

QtXml.QXmlAttributes.QXmlAttributes ( QXmlAttributes  copy)

Constructs an empty attribute list.

Member Function Documentation

new void QtXml.QXmlAttributes.Append ( string  qName,
string  uri,
string  localPart,
string  value 
)

Appends a new attribute entry to the list of attributes. The qualified name of the attribute is qName, the namespace URI is uri and the local name is localPart. The value of the attribute is value.

See also qName(), uri(), localName(), and value().

new void QtXml.QXmlAttributes.Clear ( )

Clears the list of attributes.

See also append().

new int QtXml.QXmlAttributes.Count ( )

Returns the number of attributes in the list. This function is equivalent to length().

virtual void QtXml.QXmlAttributes.CreateProxy ( )
virtual
new void QtXml.QXmlAttributes.Dispose ( )
new int QtXml.QXmlAttributes.Index ( QLatin1String  qName)

This is an overloaded function.

new int QtXml.QXmlAttributes.Index ( string  qName)

Looks up the index of an attribute by the qualified name qName.

Returns the index of the attribute or -1 if it wasn't found.

See also Namespace Support via Features.

new int QtXml.QXmlAttributes.Index ( string  uri,
string  localPart 
)

This is an overloaded function.

Looks up the index of an attribute by a namespace name.

uri specifies the namespace URI, or an empty string if the name has no namespace URI. localPart specifies the attribute's local name.

Returns the index of the attribute, or -1 if it wasn't found.

See also Namespace Support via Features.

new int QtXml.QXmlAttributes.Length ( )

Returns the number of attributes in the list.

See also count().

new string QtXml.QXmlAttributes.LocalName ( int  index)

Looks up an attribute's local name for the attribute at position index. If no namespace processing is done, the local name is an empty string.

See also Namespace Support via Features.

new string QtXml.QXmlAttributes.qName ( int  index)

Looks up an attribute's XML 1.0 qualified name for the attribute at position index.

See also Namespace Support via Features.

new string QtXml.QXmlAttributes.Type ( int  index)

Looks up an attribute's type for the attribute at position index.

Currently only "CDATA" is returned.

new string QtXml.QXmlAttributes.Type ( string  qName)

This is an overloaded function.

Looks up an attribute's type for the qualified name qName.

Currently only "CDATA" is returned.

new string QtXml.QXmlAttributes.Type ( string  uri,
string  localName 
)

This is an overloaded function.

Looks up an attribute's type by namespace name.

uri specifies the namespace URI and localName specifies the local name. If the name has no namespace URI, use an empty string for uri.

Currently only "CDATA" is returned.

new string QtXml.QXmlAttributes.Uri ( int  index)

Looks up an attribute's namespace URI for the attribute at position index. If no namespace processing is done or if the attribute has no namespace, the namespace URI is an empty string.

See also Namespace Support via Features.

new string QtXml.QXmlAttributes.Value ( QLatin1String  qName)

This is an overloaded function.

Returns an attribute's value for the qualified name qName, or an empty string if no attribute exists for the name given.

See also Namespace Support via Features.

new string QtXml.QXmlAttributes.Value ( int  index)

Returns an attribute's value for the attribute at position index. The index must be a valid position (i.e., 0 <= index < count()).

new string QtXml.QXmlAttributes.Value ( string  qName)

This is an overloaded function.

Returns an attribute's value for the qualified name qName, or an empty string if no attribute exists for the name given.

See also Namespace Support via Features.

new string QtXml.QXmlAttributes.Value ( string  uri,
string  localName 
)

This is an overloaded function.

Returns an attribute's value by namespace name.

uri specifies the namespace URI, or an empty string if the name has no namespace URI. localName specifies the attribute's local name.

Member Data Documentation

SmokeInvocation QtXml.QXmlAttributes.interceptor
protected

Property Documentation

virtual System.IntPtr QtXml.QXmlAttributes.SmokeObject
getset