クラス EntityViewUtil
java.lang.Object
org.iplass.mtp.view.generic.EntityViewUtil
public class EntityViewUtil
extends java.lang.Object
画面定義用ユーティリティクラス
-
コンストラクタの概要
コンストラクタ コンストラクタ 説明 EntityViewUtil() -
メソッドの概要
修飾子とタイプ メソッド 説明 static ValidateError[]collectNestPropertyErrors(JoinPropertyEditor editor, java.lang.String prefix, ValidateError[] errors)static java.util.List<EditorValue>createEditorValueList(SelectProperty sp, java.lang.String lang)EditorValueのリストを生成します。static java.util.List<EditorValue>createEditorValueList(SelectValueDefinition svd, java.lang.String lang)EditorValueのリストを生成します。static java.lang.StringgetCustomStyle(java.lang.String definitionName, java.lang.String scriptKey, java.lang.String editorScriptKey, Entity entity, java.lang.Object propValue)Editorに定義されたカスタムスタイル(表示、入力)を取得static java.lang.StringgetDefautlResourceString(java.lang.String key)Resourceファイルからデフォルト言語に対応した対象KEYの値を返します。static java.lang.StringgetJspPath(PropertyEditor editor)プロパティエディタのJSPファイルパスを取得します。static java.lang.StringgetJspPath(PropertyEditor editor, java.lang.String key)プロパティエディタのJSPファイルパスを取得します。static java.lang.StringgetJspPath(Element element)エレメントのJSPファイルパスを取得します。static java.lang.StringgetJspPath(Element element, java.lang.String key)エレメントのJSPファイルパスを取得します。static PropertyDefinitiongetPropertyDefinition(java.lang.String propName, EntityDefinition entity)static PropertyDefinitiongetPropertyDefinition(VirtualPropertyItem property)画面表示用に仮想プロパティ用のプロパティ定義を作成static java.util.List<ReferenceSection>getReferenceSectionList(java.util.List<ReferenceSection> sections, java.util.List<?> elem)static java.lang.StringgetSelectPropertyLabel(java.util.List<LocalizedSelectValueDefinition> localizedList, java.lang.String value, java.lang.String defaultLabel)static java.lang.StringgetSelectPropertyLabel(java.util.List<LocalizedSelectValueDefinition> localizedList, EditorValue editorValue, java.util.List<SelectValue> valueList)static java.lang.StringgetStringPropertySelectTypeLabel(EditorValue editorValue)static booleanisDisplayElement(java.lang.String definitionName, java.lang.String elementRuntimeId, OutputType outputType, Entity entity)エレメントの表示可否を判定します。static java.util.List<Token>perse(JoinPropertyEditor editor)static longreferenceSectionCount(DetailFormView view, java.lang.String propName)指定のプロパティ名を持つ参照セクションの件数を取得します。static java.util.List<Entity>sortByOrderProperty(java.util.List<Entity> entities, java.lang.String propertyName)static java.util.List<Entity>sortByOrderProperty(java.util.List<Entity> entities, java.lang.String propertyName, boolean research)
-
コンストラクタの詳細
-
EntityViewUtil
public EntityViewUtil()
-
-
メソッドの詳細
-
isDisplayElement
public static boolean isDisplayElement(java.lang.String definitionName, java.lang.String elementRuntimeId, OutputType outputType, Entity entity)エレメントの表示可否を判定します。- パラメータ:
definitionName- Entity定義名elementRuntimeId- エレメントのランタイムIDoutputType- 表示タイプentity- 表示対象のエンティティ- 戻り値:
- 表示可否
-
getJspPath
エレメントのJSPファイルパスを取得します。- パラメータ:
element- エレメント- 戻り値:
- JSPファイルパス
-
getJspPath
エレメントのJSPファイルパスを取得します。- パラメータ:
element- エレメント- 戻り値:
- JSPファイルパス
-
getJspPath
プロパティエディタのJSPファイルパスを取得します。- パラメータ:
editor- プロパティエディタ- 戻り値:
- JSPファイルパス
-
getJspPath
プロパティエディタのJSPファイルパスを取得します。- パラメータ:
editor- プロパティエディタ- 戻り値:
- JSPファイルパス
-
perse
- 例外:
java.io.IOException
-
collectNestPropertyErrors
public static ValidateError[] collectNestPropertyErrors(JoinPropertyEditor editor, java.lang.String prefix, ValidateError[] errors) -
getSelectPropertyLabel
public static java.lang.String getSelectPropertyLabel(java.util.List<LocalizedSelectValueDefinition> localizedList, EditorValue editorValue, java.util.List<SelectValue> valueList) -
getSelectPropertyLabel
public static java.lang.String getSelectPropertyLabel(java.util.List<LocalizedSelectValueDefinition> localizedList, java.lang.String value, java.lang.String defaultLabel) -
createEditorValueList
public static java.util.List<EditorValue> createEditorValueList(SelectProperty sp, java.lang.String lang)EditorValueのリストを生成します。- パラメータ:
sp- 対象SelectPropertylang- 言語(多言語利用時に利用されます。nullの場合は、利用可能言語すべてが取得されます)- 戻り値:
- EditorValueのリスト
-
createEditorValueList
public static java.util.List<EditorValue> createEditorValueList(SelectValueDefinition svd, java.lang.String lang)EditorValueのリストを生成します。- パラメータ:
svd- 対象SelectValueDefinitionlang- 言語(多言語利用時に利用されます。nullの場合は、利用可能言語すべてが取得されます)- 戻り値:
- EditorValueのリスト
-
getStringPropertySelectTypeLabel
-
getDefautlResourceString
public static java.lang.String getDefautlResourceString(java.lang.String key)Resourceファイルからデフォルト言語に対応した対象KEYの値を返します。- パラメータ:
key- Resource Key- 戻り値:
- デフォルト言語に対応するリソース値
-
getPropertyDefinition
public static PropertyDefinition getPropertyDefinition(java.lang.String propName, EntityDefinition entity) -
getPropertyDefinition
画面表示用に仮想プロパティ用のプロパティ定義を作成- パラメータ:
property-- 戻り値:
-
getCustomStyle
public static java.lang.String getCustomStyle(java.lang.String definitionName, java.lang.String scriptKey, java.lang.String editorScriptKey, Entity entity, java.lang.Object propValue)Editorに定義されたカスタムスタイル(表示、入力)を取得- パラメータ:
definitionName- Entity定義名scriptKey- Form/Sectionに設定されたScriptKey(EntityViewにてこのKEYでTemplateをキャッシュ)editorScriptKey- Editorに設定されたScriptKey(Sectio単位のキャッシュにこのKEYでEditorのTemplateをキャッシュ)entity- 対象Entityデータ(検索条件、新規登録などの場合はnullあり)propValue- 対象Propertyデータ- 戻り値:
-
referenceSectionCount
指定のプロパティ名を持つ参照セクションの件数を取得します。- パラメータ:
view- 詳細画面定義propName- プロパティ名- 戻り値:
- 参照セクションの件数
-
getReferenceSectionList
public static java.util.List<ReferenceSection> getReferenceSectionList(java.util.List<ReferenceSection> sections, java.util.List<?> elem) -
sortByOrderProperty
-
sortByOrderProperty
-