public static class EmpInfoReferLogic.DefaultConvert extends ConvertForJsonSource
修飾子とタイプ | フィールドと説明 |
---|---|
protected FormatHelper |
formatHelper
FormatHelper.
|
protected LaborSurfaceHelper |
laborSurfaceHelper
LaborSurfaceHelper.
|
protected PropertyHelper |
propertyHelper
PropertyHelper.
|
dateHelper
コンストラクタと説明 |
---|
DefaultConvert()
コンストラクタ.
|
DefaultConvert(List<String> _extendsFields)
コンストラクタ.
|
修飾子とタイプ | メソッドと説明 |
---|---|
protected Map<String,String> |
formatFormatedValue(Map<String,Object> map,
Stack<String> fldNameStack)
返却値(書式化)の書式変換.
|
protected Map<String,Object> |
formatPlainValue(Map<String,Object> map,
Stack<String> fldNameStack)
返却値(通常)の書式変換.
|
dtoConvert, linkedHashMapConvert, listConvert, mapConvert, mapListConvert
protected FormatHelper formatHelper
protected PropertyHelper propertyHelper
protected LaborSurfaceHelper laborSurfaceHelper
protected Map<String,Object> formatPlainValue(Map<String,Object> map, Stack<String> fldNameStack)
主に入力フィールド(JSPのテキストボックス等)に表示する際の値を返却してください。
書式変換後の値はString型で返却し、書式変換が不要な値はそのままの型で返却してください。
返却後、String型でない値は、本クラスで定義してあるデフォルト書式に変換されます。
デフォルトの書式変換は以下の通り
BigDecimal.toPlainString()
を行います。BigInteger.toString()
を行います。formatPlainValue
クラス内 ConvertForJsonSource
map
- 対象データfldNameStack
- fldNameStack フィールド名のスタックprotected Map<String,String> formatFormatedValue(Map<String,Object> map, Stack<String> fldNameStack)
主に表示フィールド(JSPのラベル等)に表示する際の値を返却してください。
書式変換後の値はString型で返却し、書式変換が不要な値はnullで返却してください。
nullで返却された値は、jp.co.slcs.kaiden.v2.base.foundation.util.ConvertForJsonSource.formatPlainValue(Map
で変換された値がそのまま表示項目として利用されます。
ConvertForJsonSource
では、entryTs(登録日時)、renewTs(更新日時)に関して、iAP個人設定の日付:標準表示+時刻:タイムスタンプ表示に変換します。
必要に応じてオーバーライドして、書式変換してください。
本サブクラスでは、以下の書式変換を行う。
formatFormatedValue
クラス内 ConvertForJsonSource
map
- 対象データfldNameStack
- fldNameStack フィールド名のスタックCopyright © 2023 Sumitomo Life Information Systems Co., Ltd. All Rights Reserved.