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