public static class DailyInspectListLogic.DefaultConvert extends ConvertForJsonSource
修飾子とタイプ | フィールドと説明 |
---|---|
protected ContextHelper |
contextHelper
ContextHelper.
|
protected List<String> |
extendsFields
処理対象のjson文字列.
|
protected FormatHelper |
formatHelper
FormatHelper.
|
protected LaborSurfaceHelper |
laborSurfaceHelper
LaborSurfaceHelper.
|
dateHelper
コンストラクタと説明 |
---|
DefaultConvert(String companyCd)
コンストラクタ.
|
修飾子とタイプ | メソッドと説明 |
---|---|
void |
addExtendsFields(List<String> p)
追加集計フィールドリストに指定された文字列を追加.
|
void |
addExtendsFields(String p)
追加集計フィールドリストに指定された文字列を追加.
|
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 LaborSurfaceHelper laborSurfaceHelper
protected ContextHelper contextHelper
public DefaultConvert(String companyCd)
companyCd
- 会社コード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 フィールド名のスタックpublic void addExtendsFields(String p)
指定された文字列が既にリストに存在する場合は処理を行いません。
p
- 追加対象文字列Copyright © 2023 Sumitomo Life Information Systems Co., Ltd. All Rights Reserved.