|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.maskat.core.node.TableNode
public class TableNode
テーブルノード
テーブル構造を表現するノード。 sampleTable | |col1|col2|col3| |row1| 1| 4| 7| |row2| 2| 5| 8| |row3| 3| 6| 9| を表現する場合、TableNode table = new TableNode("sampleTable"); table.newRow("row1").add("col1", "1").add("col2", "4").add("col3", "7"); table.newRow("row1").add("col1", "2").add("col2", "5").add("col3", "8"); table.newRow("row1").add("col1", "3").add("col2", "6").add("col3", "9");とする。 また上記はTableNode table = new TableNode("sampleTable"); table.newRow("row1"); table.add("col1", "1"); table.add("col2", "4"); table.add("col3", "7"); table.newRow("row1"); table.add("col1", "2"); table.add("col2", "5"); table.add("col3", "8"); table.newRow("row1"); table.add("col1", "3"); table.add("col2", "6"); table.add("col3", "9");と等価。
| コンストラクタの概要 | |
|---|---|
TableNode(java.lang.String tableName)
コンストラクタ |
|
| メソッドの概要 | |
|---|---|
TableNode |
add(java.lang.String colName,
java.lang.String value)
新規カラム作成 このメソッド呼び出しに先駆けてnewRow()を呼び出すこと。 |
java.lang.String |
getXML()
XML文字列の取得 |
TableNode |
newRow(java.lang.String rowName)
新規行作成 |
| クラス java.lang.Object から継承されたメソッド |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public TableNode(java.lang.String tableName)
tableName - テーブル名| メソッドの詳細 |
|---|
public TableNode newRow(java.lang.String rowName)
rowName - 行名
public TableNode add(java.lang.String colName,
java.lang.String value)
このメソッド呼び出しに先駆けてnewRow()を呼び出すこと。
colName - カラム名value - カラム値
public java.lang.String getXML()
Node の記述:
Node 内の getXML
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||