tsukuba_bunko.peko.scenario
クラス SceneContext.Node

java.lang.Object
  上位を拡張 tsukuba_bunko.peko.scenario.SceneContext.Node
すべての実装されたインタフェース:
java.io.Serializable
含まれているクラス:
SceneContext

public static class SceneContext.Node
extends java.lang.Object
implements java.io.Serializable

PSML Scene 文書を構成するノードです。

関連項目:
直列化された形式

フィールドの概要
protected  java.util.List _children
          子ノードリスト
protected  java.lang.String _nodeName
          ノード名
protected  SceneContext.Node _parent
          親ノード
protected  int _position
          position
 
コンストラクタの概要
SceneContext.Node(SceneContext.Node parent, java.lang.String nodeName, int position)
          SceneContext.Node のインスタンスを生成します。
 
メソッドの概要
 void addChildNode(SceneContext.Node child)
          子ノードを追加します。
 int countSibling(java.lang.String nodeName)
          子ノードのなかで、指定された名前のノードの数をカウントします。
 boolean equals(java.lang.Object obj)
           
 java.lang.String getNodeName()
          ノード名を取得します。
 SceneContext.Node getParentNode()
          親ノードを取得します。
 java.lang.String getPath()
          このノードまでのパスを XPath 形式で取得します。
 int getPosition()
          ポジションを取得します。
 void removeChildren()
          このノードをルートとするサブツリーを破棄します。
 java.lang.String toString()
           
 
クラス java.lang.Object から継承されたメソッド
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

_parent

protected SceneContext.Node _parent
親ノード


_nodeName

protected java.lang.String _nodeName
ノード名


_position

protected int _position
position


_children

protected java.util.List _children
子ノードリスト

コンストラクタの詳細

SceneContext.Node

public SceneContext.Node(SceneContext.Node parent,
                         java.lang.String nodeName,
                         int position)
SceneContext.Node のインスタンスを生成します。

メソッドの詳細

getParentNode

public SceneContext.Node getParentNode()
親ノードを取得します。

戻り値:
親ノード

getNodeName

public java.lang.String getNodeName()
ノード名を取得します。

戻り値:
ノード名

getPosition

public int getPosition()
ポジションを取得します。

戻り値:
ポジション

addChildNode

public void addChildNode(SceneContext.Node child)
子ノードを追加します。

パラメータ:
child - 子ノード

countSibling

public int countSibling(java.lang.String nodeName)
子ノードのなかで、指定された名前のノードの数をカウントします。

パラメータ:
nodeName - 子ノード名
戻り値:
ノード数

removeChildren

public void removeChildren()
このノードをルートとするサブツリーを破棄します。


getPath

public java.lang.String getPath()
このノードまでのパスを XPath 形式で取得します。

戻り値:
このノードまでのパス

equals

public boolean equals(java.lang.Object obj)
オーバーライド:
クラス java.lang.Object 内の equals

toString

public java.lang.String toString()
オーバーライド:
クラス java.lang.Object 内の toString


All Rights Reserved. © 1999-2006 The "Peko" Project, Tsukuba Bunko.