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

The QXmlStreamAttributes class represents a vector of QXmlStreamAttribute. More...

Inheritance diagram for QtCore.QXmlStreamAttributes:
Collaboration diagram for QtCore.QXmlStreamAttributes:

Public Member Functions

 QXmlStreamAttributes ()
 
 
 QXmlStreamAttributes (QXmlStreamAttributes copy)
 
 
virtual void CreateProxy ()
 
new void Append (string qualifiedName, string value)
 
 
new void Append (string namespaceUri, string name, string value)
 
 
new bool HasAttribute (QLatin1String qualifiedName)
 
 
new bool HasAttribute (string qualifiedName)
 
 
new bool HasAttribute (string namespaceUri, string name)
 
 
new QStringRef Value (QLatin1String qualifiedName)
 
 
new QStringRef Value (QLatin1String namespaceUri, QLatin1String name)
 
 
new QStringRef Value (string qualifiedName)
 
 
new QStringRef Value (string namespaceUri, QLatin1String name)
 
 
new QStringRef Value (string namespaceUri, string name)
 
 
new void Dispose ()
 

Protected Member Functions

 QXmlStreamAttributes (System.Type dummy)
 

Protected Attributes

SmokeInvocation interceptor
 

Properties

virtual System.IntPtr SmokeObject [get, set]
 

Detailed Description

The QXmlStreamAttributes class represents a vector of QXmlStreamAttribute.

Attributes are returned by a QXmlStreamReader in attributes() when the reader reports a start element. The class can also be used with a QXmlStreamWriter as an argument to writeAttributes().

The convenience function value() loops over the vector and returns an attribute value for a given namespaceUri and an attribute's name.

New attributes can be added with append().

Constructor & Destructor Documentation

QtCore.QXmlStreamAttributes.QXmlStreamAttributes ( System.Type  dummy)
protected
QtCore.QXmlStreamAttributes.QXmlStreamAttributes ( )

void QXmlStreamAttributes::append ( const QString & namespaceUri, const QString & name, const QString & value )

Appends a new attribute with name in the namespace described with namespaceUri, and value value. The namespaceUri can be empty.

QtCore.QXmlStreamAttributes.QXmlStreamAttributes ( QXmlStreamAttributes  copy)

void QXmlStreamAttributes::append ( const QString & namespaceUri, const QString & name, const QString & value )

Appends a new attribute with name in the namespace described with namespaceUri, and value value. The namespaceUri can be empty.

Member Function Documentation

new void QtCore.QXmlStreamAttributes.Append ( string  qualifiedName,
string  value 
)

This is an overloaded function.

Appends a new attribute with qualified name qualifiedName and value value.

new void QtCore.QXmlStreamAttributes.Append ( string  namespaceUri,
string  name,
string  value 
)

Appends a new attribute with name in the namespace described with namespaceUri, and value value. The namespaceUri can be empty.

virtual void QtCore.QXmlStreamAttributes.CreateProxy ( )
virtual
new void QtCore.QXmlStreamAttributes.Dispose ( )
new bool QtCore.QXmlStreamAttributes.HasAttribute ( QLatin1String  qualifiedName)

This is an overloaded function.

This function was introduced in Qt 4.5.

new bool QtCore.QXmlStreamAttributes.HasAttribute ( string  qualifiedName)

Returns true if this QXmlStreamAttributes has an attribute whose qualified name is qualifiedName; otherwise returns false.

Note that this is not namespace aware. For instance, if this QXmlStreamAttributes contains an attribute whose lexical name is "xlink:href" this doesn't tell that an attribute named href in the XLink namespace is present, since the xlink prefix can be bound to any namespace. Use the overload that takes a namespace URI and a local name as parameter, for namespace aware code.

This function was introduced in Qt 4.5.

new bool QtCore.QXmlStreamAttributes.HasAttribute ( string  namespaceUri,
string  name 
)

This is an overloaded function.

Returns true if this QXmlStreamAttributes has an attribute whose namespace URI and name correspond to namespaceUri and name; otherwise returns false.

This function was introduced in Qt 4.5.

new QStringRef QtCore.QXmlStreamAttributes.Value ( QLatin1String  qualifiedName)

This is an overloaded function.

Returns the value of the attribute with qualified name qualifiedName , or an empty string reference if the attribute is not defined. A qualified name is the raw name of an attribute in the XML data. It consists of the namespace prefix, followed by colon, followed by the attribute's local name. Since the namespace prefix is not unique (the same prefix can point to different namespaces and different prefixes can point to the same namespace), you shouldn't use qualified names, but a resolved namespaceUri and the attribute's local name.

new QStringRef QtCore.QXmlStreamAttributes.Value ( QLatin1String  namespaceUri,
QLatin1String  name 
)

This is an overloaded function.

Returns the value of the attribute name in the namespace described with namespaceUri, or an empty string reference if the attribute is not defined. The namespaceUri can be empty.

new QStringRef QtCore.QXmlStreamAttributes.Value ( string  qualifiedName)

This is an overloaded function.

Returns the value of the attribute with qualified name qualifiedName , or an empty string reference if the attribute is not defined. A qualified name is the raw name of an attribute in the XML data. It consists of the namespace prefix, followed by colon, followed by the attribute's local name. Since the namespace prefix is not unique (the same prefix can point to different namespaces and different prefixes can point to the same namespace), you shouldn't use qualified names, but a resolved namespaceUri and the attribute's local name.

new QStringRef QtCore.QXmlStreamAttributes.Value ( string  namespaceUri,
QLatin1String  name 
)

This is an overloaded function.

Returns the value of the attribute name in the namespace described with namespaceUri, or an empty string reference if the attribute is not defined. The namespaceUri can be empty.

new QStringRef QtCore.QXmlStreamAttributes.Value ( string  namespaceUri,
string  name 
)

Returns the value of the attribute name in the namespace described with namespaceUri, or an empty string reference if the attribute is not defined. The namespaceUri can be empty.

Member Data Documentation

SmokeInvocation QtCore.QXmlStreamAttributes.interceptor
protected

Property Documentation

virtual System.IntPtr QtCore.QXmlStreamAttributes.SmokeObject
getset