Class EnumProperty
java.lang.Object
com.infoteria.asteria.flowlibrary2.property.ValueProperty
com.infoteria.asteria.flowlibrary2.property.EnumProperty
- Direct Known Subclasses:
HomeModeProperty
列挙型のプロパティクラスです。
-
Constructor Summary
ConstructorsConstructorDescriptionEnumProperty(String name) EnumProperty(name, false, true, null) と同じです。EnumProperty(String name, boolean required) EnumProperty(name, required, true, null) と同じです。EnumProperty(String name, boolean required, boolean mapable) EnumProperty(name, required, mapable, null) と同じです。EnumProperty(String name, boolean required, boolean mapable, String value) コンストラクタ -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEnumeration(String value) プロパティ値として設定可能な列挙値を追加します。booleanclone()プロパティのcloneメソッドです。使用可能な列挙値のリストintgetIndex()設定されているプロパティ値のインデックスを返します。
インデックスはaddEnumerationメソッドで追加された順に0ベースで決まります。voidコンパイル時に値を設定します。strValue()プロパティ値を返します。Methods inherited from class com.infoteria.asteria.flowlibrary2.property.ValueProperty
assign, getName, getType, getValue, getValueType, init, isMapable, isNull, isRequired, resetMacro, setRequired, toString
-
Constructor Details
-
EnumProperty
EnumProperty(name, false, true, null) と同じです。 -
EnumProperty
EnumProperty(name, required, true, null) と同じです。 -
EnumProperty
EnumProperty(name, required, mapable, null) と同じです。 -
EnumProperty
コンストラクタ- Parameters:
name- プロパティ名required- このプロパティが必須プロパティの場合はtruemapable- このプロパティがMapping可能な場合はtruevalue- デフォルト値
-
-
Method Details
-
canUseMacro
public boolean canUseMacro() -
addEnumeration
プロパティ値として設定可能な列挙値を追加します。 -
getEnumList
使用可能な列挙値のリスト -
setString
Description copied from class:ValuePropertyコンパイル時に値を設定します。- Overrides:
setStringin classValueProperty- Parameters:
value- プロパティ値として設定される文字列- Throws:
PropertyException
-
clone
Description copied from interface:Propertyプロパティのcloneメソッドです。- Specified by:
clonein interfaceProperty- Overrides:
clonein classValueProperty
-
strValue
プロパティ値を返します。- Throws:
PropertyException- プロパティ値として不正な値が設定されている場合
-
getIndex
設定されているプロパティ値のインデックスを返します。
インデックスはaddEnumerationメソッドで追加された順に0ベースで決まります。- Throws:
PropertyException- プロパティ値として不正な値が設定されている場合
-