API reference - Class QXmlAttributes

Notation used in Ruby API documentation

Description: Binding of QXmlAttributes

Public constructors

new QXmlAttributesnewConstructor QXmlAttributes::QXmlAttributes()

Public methods

voidappend(string qName,
string uri,
string localPart,
string value)
Method void QXmlAttributes::append(const QString &qName, const QString &uri, const QString &localPart, const QString &value)
[const]voidassign(const QXmlAttributes other)Assign the contents of another object to self
voidclearMethod void QXmlAttributes::clear()
[const]intcountMethod int QXmlAttributes::count()
voidcreateEnsures the C++ object is created
voiddestroyExplicitly destroy the object
[const]booldestroyed?Returns a value indicating whether the object was already destroyed
[const]QXmlAttributesdupCreates a copy of self
[const]intindex(string qName)Method int QXmlAttributes::index(const QString &qName)
[const]intindex(string uri,
string localPart)
Method int QXmlAttributes::index(const QString &uri, const QString &localPart)
[const]boolis_const_object?Returns a value indicating whether the reference is a const reference
[const]intlengthMethod int QXmlAttributes::length()
[const]stringlocalName(int index)Method QString QXmlAttributes::localName(int index)
[const]stringqName(int index)Method QString QXmlAttributes::qName(int index)
[const]stringtype(int index)Method QString QXmlAttributes::type(int index)
[const]stringtype(string qName)Method QString QXmlAttributes::type(const QString &qName)
[const]stringtype(string uri,
string localName)
Method QString QXmlAttributes::type(const QString &uri, const QString &localName)
[const]stringuri(int index)Method QString QXmlAttributes::uri(int index)
[const]stringvalue(int index)Method QString QXmlAttributes::value(int index)
[const]stringvalue(string qName)Method QString QXmlAttributes::value(const QString &qName)
[const]stringvalue(string uri,
string localName)
Method QString QXmlAttributes::value(const QString &uri, const QString &localName)

Detailed description

void append(string qName,string uri,string localPart,string value)

Description: Method void QXmlAttributes::append(const QString &qName, const QString &uri, const QString &localPart, const QString &value)

[const] void assign(const QXmlAttributes other)

Description: Assign the contents of another object to self

This method assigns the contents of another object to self. This is a deep copy that does not only copy the reference but the actual content.

void clear

Description: Method void QXmlAttributes::clear()

[const] int count

Description: Method int QXmlAttributes::count()

void create

Description: Ensures the C++ object is created

Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created.

void destroy

Description: Explicitly destroy the object

Explicitly destroy the object on C++ side if it was owned by the Ruby interpreter. Subsequent access to this object will throw an exception. If the object is not owned by Ruby, this method will do nothing.

[const] bool destroyed?

Description: Returns a value indicating whether the object was already destroyed

This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself.

[const] QXmlAttributes dup

Description: Creates a copy of self

[const] int index(string qName)

Description: Method int QXmlAttributes::index(const QString &qName)

[const] int index(string uri,string localPart)

Description: Method int QXmlAttributes::index(const QString &uri, const QString &localPart)

[const] bool is_const_object?

Description: Returns a value indicating whether the reference is a const reference

This method returns true, if self is a const reference. In that case, only const methods may be called on self.

[const] int length

Description: Method int QXmlAttributes::length()

[const] string localName(int index)

Description: Method QString QXmlAttributes::localName(int index)

[static] new QXmlAttributes new

Description: Constructor QXmlAttributes::QXmlAttributes()

This method creates an object of class QXmlAttributes.

[const] string qName(int index)

Description: Method QString QXmlAttributes::qName(int index)

[const] string type(int index)

Description: Method QString QXmlAttributes::type(int index)

[const] string type(string qName)

Description: Method QString QXmlAttributes::type(const QString &qName)

[const] string type(string uri,string localName)

Description: Method QString QXmlAttributes::type(const QString &uri, const QString &localName)

[const] string uri(int index)

Description: Method QString QXmlAttributes::uri(int index)

[const] string value(int index)

Description: Method QString QXmlAttributes::value(int index)

[const] string value(string qName)

Description: Method QString QXmlAttributes::value(const QString &qName)

[const] string value(string uri,string localName)

Description: Method QString QXmlAttributes::value(const QString &uri, const QString &localName)