T - ツリー構造のノードのクラス型public abstract class TreeParser<T extends TreeNode<T>> extends Object
| 修飾子とタイプ | フィールドと説明 |
|---|---|
static long |
ROOT_COUNT
ルートノードに指定するカウント値
|
| 修飾子 | コンストラクタと説明 |
|---|---|
protected |
TreeParser()
コンストラクタ
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected abstract T |
createNode(String value,
FacetInfo.Facet facet)
ノードを新しく作成します。
|
protected void |
createNodes(T root,
FacetInfo.Facet facet,
Collection<String> stack)
ノードを作成します。
|
protected abstract T |
createRootNode(String value)
ルートノードを作成します。
|
protected String |
diff(String child,
String parent)
ファセット同士の差分を取得します。
|
protected T |
getChildNode(T parent,
String value,
FacetInfo.Facet facet)
子ノードを作成します。
|
protected abstract String |
getDelm()
ファセットのデリミタを返します。
|
protected T |
parseNode(FacetInfo facetInfo)
与えられたファセット情報をツリー構造に解析し、そのルートノードを返します。
|
public static final long ROOT_COUNT
protected abstract T createNode(String value, FacetInfo.Facet facet)
value - ノード値facet - ファセットprotected void createNodes(T root, FacetInfo.Facet facet, Collection<String> stack)
root - ルートノードfacet - ファセットstack - スタックprotected abstract T createRootNode(String value)
value - ノードの値protected String diff(String child, String parent)
child - 子ファセットparent - 親ファセットprotected T getChildNode(T parent, String value, FacetInfo.Facet facet)
parent - 親ノードvalue - 子ノードの値facet - ファセットprotected abstract String getDelm()
Copyright © 2012 NTT DATA INTRAMART CORPORATION