public class AttributeMapTranslator extends java.lang.Object implements Translator
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected AttributeService |
att |
protected boolean |
throwExFlag |
| コンストラクタと説明 |
|---|
AttributeMapTranslator(AttributeService att)
コンストラクタ。
|
AttributeMapTranslator(AttributeService att,
boolean ignoreEmpty)
コンストラクタ。
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
java.lang.Object |
translate(java.lang.Object source)
sourceをTemplate等で表示する形式に変換する。
|
protected AttributeService att
protected boolean throwExFlag
public AttributeMapTranslator(AttributeService att)
att - 変換を取得するAttributeServiceattributeNames - attから取得する属性名(Nullだったら次に取得する属性名のリスト)public AttributeMapTranslator(AttributeService att, boolean ignoreEmpty)
att - 変換を取得するAttributeServiceignoreEmpty - 複数Keyの場合、Mapで返すか、文字列で結合するかを選択するフラグpublic java.lang.Object translate(java.lang.Object source) throws TranslateException
translate インタフェース内 TranslatorTranslateException