Class SelectProperty
java.lang.Object
org.iplass.mtp.entity.definition.PropertyDefinition
org.iplass.mtp.entity.definition.properties.SelectProperty
- All Implemented Interfaces:
Serializable
選択肢からのセレクトを行うプロパティを表す定義。
SelectPropertyの定義方法は2つ。
- ローカル定義:SelectPropertyに直接選択肢(SelectValue)を定義(selectValueList,localizedSelectValueList)
- グローバル定義:共通に定義されているSelectValueDefinitionを指定(selectValueDefinitionName)。
- See Also:
-
Field Summary
Fields inherited from class org.iplass.mtp.entity.definition.PropertyDefinition
MULTIPLICITY_INFINITE -
Constructor Summary
ConstructorsConstructorDescriptionSelectProperty(String name) SelectProperty(String name, SelectValue... value) SelectProperty(SelectValueDefinition selectValueDefinition, boolean deepCopy) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLocalizedSelectValue(LocalizedSelectValueDefinition localizedSelectValue) voidaddSelectValue(SelectValue value) voidapplySelectValueDefinition(SelectValueDefinition selectValueDefinition, boolean deepCopy) Class<?>getLocalizedSelectValue(String value, String locale) 指定のvalueで、指定のlocaleのSelectValue定義を返却。 指定のlocaleで定義されていなかった場合は、デフォルトのSelectValue定義を返却。getSelectValue(String value) 指定のvalueのSelectValue定義を返却getType()enumでPropertyの型を返す。 switch/case文で利用可能なように。voidsetLocalizedSelectValueList(List<LocalizedSelectValueDefinition> localizedSelectValueList) voidsetSelectValueDefinitionName(String selectValueDefinitionName) voidsetSelectValueList(List<SelectValue> selectValueList) Methods inherited from class org.iplass.mtp.entity.definition.PropertyDefinition
addLocalizedDisplayName, getDefaultValue, getDescription, getDisplayName, getIndexType, getLocalizedDisplayNameList, getMultiplicity, getName, getNormalizers, getValidations, isInherited, isReadOnly, isUpdatable, setDefaultValue, setDescription, setDisplayName, setIndexType, setInherited, setLocalizedDisplayNameList, setMultiplicity, setName, setNormalizers, setReadOnly, setUpdatable, setValidations
-
Constructor Details
-
SelectProperty
public SelectProperty() -
SelectProperty
-
SelectProperty
-
SelectProperty
-
-
Method Details
-
getSelectValue
指定のvalueのSelectValue定義を返却- Parameters:
value-- Returns:
-
getLocalizedSelectValue
指定のvalueで、指定のlocaleのSelectValue定義を返却。 指定のlocaleで定義されていなかった場合は、デフォルトのSelectValue定義を返却。- Parameters:
value-locale-- Returns:
-
applySelectValueDefinition
public void applySelectValueDefinition(SelectValueDefinition selectValueDefinition, boolean deepCopy) -
getSelectValueDefinitionName
-
setSelectValueDefinitionName
-
addSelectValue
-
getSelectValueList
-
setSelectValueList
-
addLocalizedSelectValue
-
getLocalizedSelectValueList
-
setLocalizedSelectValueList
public void setLocalizedSelectValueList(List<LocalizedSelectValueDefinition> localizedSelectValueList) -
getJavaType
- Specified by:
getJavaTypein classPropertyDefinition
-
getType
Description copied from class:PropertyDefinitionenumでPropertyの型を返す。 switch/case文で利用可能なように。- Specified by:
getTypein classPropertyDefinition- Returns:
-