public class MultipleAttributeTranslateString extends java.lang.Object implements Translator
修飾子とタイプ | フィールドと説明 |
---|---|
protected AttributeService |
att |
protected Key[] |
attributes |
protected boolean |
throwExFlag |
コンストラクタと説明 |
---|
MultipleAttributeTranslateString(AttributeService att,
java.lang.String[] attributeNames)
コンストラクタ。
|
MultipleAttributeTranslateString(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 MultipleAttributeTranslateString(AttributeService att, java.lang.String[] attributeNames)
att
- 変換を取得するAttributeServiceattributeNames
- attから取得する属性名public MultipleAttributeTranslateString(AttributeService att, java.lang.String[] attributeNames, boolean ignoreEmpty)
att
- 変換を取得するAttributeServiceattributeNames
- attから取得する属性名ignoreEmpty
- 複数Keyの場合、Mapで返すか、文字列で結合するかを選択するフラグpublic java.lang.Object translate(java.lang.Object source) throws TranslateException
translate
インタフェース内 Translator
TranslateException