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