QDomAttr

「QDomAttr」の編集履歴(バックアップ)一覧に戻る

QDomAttr - (2014/05/28 (水) 23:02:57) のソース

*QDomAttr
属性ノードを表します

*基本
**コンストラクタ
|QDomAttr::QDomAttr()|
空の [[QDomAttr]] オブジェクトを生成します

**コピーコンストラクタ
|QDomAttr::QDomAttr(const QDomAttr & &color(coral){x})|
オブジェクトはシャローコピーされます
ディープコピーをする場合は &color(cadetblue){cloneNode()} を使用します

**型を取得する
|QDomNode::NodeType QDomAttr::nodeType() const|
ノードタイプ( &color(cadetblue){AttributeNode} )を取得します

**演算子
|QDomAttr & QDomAttr::operator=(const QDomAttr & &color(coral){x})|

----

*独自
|QString QDomAttr::name() const|
属性名を取得します

|QDomElement QDomAttr::ownerElement() const|
本属性を所有している要素ノードを取得します

|void QDomAttr::setValue(const QString & &color(coral){v})|
属性値 &color(coral){v} を設定します

|bool QDomAttr::specified() const|
&color(cadetblue){setValue()} を使用してユーザーが値を変更している場合はtrue、そうでない場合または値が設定されていない場合はfalseを返します。

|QString QDomAttr::value() const|
属性値を取得します
属性が指定されていない場合は空の文字列を返します