org.seasar.jms.core.text.impl
クラス VelocityTextFormatter
java.lang.Object
org.seasar.jms.core.text.impl.AbstractVelocityFormatter
org.seasar.jms.core.text.impl.VelocityTextFormatter
- すべての実装されたインタフェース:
- TextProvider
public class VelocityTextFormatter
- extends AbstractVelocityFormatter
Velocityを使ってフォーマットした文字列を提供するTextProvider
の実装クラス。
- 作成者:
- bowez
クラス java.lang.Object から継承されたメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
templateText
protected String templateText
- テンプレート文字列
VelocityTextFormatter
public VelocityTextFormatter()
- インスタンスを構築します。
setTemplateText
public void setTemplateText(String templateText)
- テンプレート文字列を設定します(必須)。
- パラメータ:
templateText
- テンプレート文字列
eval
protected void eval(StringWriter out)
throws Exception
- クラス
AbstractVelocityFormatter
の記述:
- このインスタンスを評価して結果の文字列を{#code out}に書き出します。
- 定義:
- クラス
AbstractVelocityFormatter
内の eval
- パラメータ:
out
- 結果文字列を書き出すライタ
- 例外:
Exception
- Velocitテンプレートの評価中に例外が発生した場合にスローされます
Copyright © 2005-2007 The Seasar Foundation. All Rights Reserved.