|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.seasar.uruma.component.writer.UIElementWriter
public class UIElementWriter
UIElement を XML ファイルへ出力するためのクラスです。
| フィールドの概要 | |
|---|---|
protected Writer |
writer
|
| コンストラクタの概要 | |
|---|---|
UIElementWriter(Writer writer)
UIElementWriter を構築します。 |
|
| メソッドの概要 | |
|---|---|
void |
deindent()
インデントレベルを上げます。 |
protected String |
getAttributeName(Field field)
|
protected String |
getElementName(Class<?> clazz)
クラスオブジェクトから要素名を取得します。 |
void |
indent()
インデントレベルを下げます。 |
void |
resetIndent()
インデントをリセットします。 |
void |
visit(Template template)
Template を訪問します。 |
void |
visit(UIElement element)
UIElement を訪問します。 |
void |
visit(UIElementContainer container)
UIElementContainer を訪問します。 |
protected void |
writeEndTag(UIElement element)
|
protected void |
writeIndent()
|
protected void |
writeStartTag(UIElement element,
boolean startTagOnly)
|
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
|---|
protected Writer writer
| コンストラクタの詳細 |
|---|
public UIElementWriter(Writer writer)
UIElementWriter を構築します。
writer - XML ファイルの出力先 Writer オブジェクト。| メソッドの詳細 |
|---|
public void visit(UIElement element)
UIElementVisitor の記述: UIElement を訪問します。
UIElementVisitor 内の visitelement - UIElement オブジェクトpublic void visit(UIElementContainer container)
UIElementVisitor の記述: UIElementContainer を訪問します。
UIElementVisitor 内の visitcontainer - UIElementContainer オブジェクトpublic void visit(Template template)
UIElementVisitor の記述: Template を訪問します。
UIElementVisitor 内の visittemplate - Template オブジェクト
protected void writeStartTag(UIElement element,
boolean startTagOnly)
throws IOException
IOException
protected void writeEndTag(UIElement element)
throws IOException
IOExceptionprotected String getElementName(Class<?> clazz)
ComponentElement アノテーションを読み取り、その値を要素名として返します。ComponentElement アノテーションの値がない場合、クラス名のサフィックス
Component を除いた名称をデキャピタライズしたものを要素名とします。
clazz - 要素名を取得する Class オブジェクト
null。protected String getAttributeName(Field field)
protected void writeIndent()
throws IOException
IOExceptionpublic void resetIndent()
public void indent()
public void deindent()
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||