Class ValueProperty
java.lang.Object
com.infoteria.asteria.flowlibrary2.property.ValueProperty
- Direct Known Subclasses:
BooleanProperty,DateProperty,EnumProperty,IntegerProperty,StringProperty
Valueクラスをラップするプロパティの基底クラスです。
このクラスのサブクラスであるプロパティはMapperでMappingすることができます。
このクラスのサブクラスであるプロパティはMapperでMappingすることができます。
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedValueProperty(String name, Value.Type valueType) ValueProperty(name, valueType, false, true) と同じです。protectedValueProperty(String name, Value.Type valueType, boolean required) ValueProperty(name, valueType, required true) と同じです。protectedValueProperty(String name, Value.Type valueType, boolean required, boolean mapable) コンストラクタ -
Method Summary
Modifier and TypeMethodDescriptionvoidこのプロパティの内容を引数のPropertyにコピーします。
引数となるPropertyのクラスはメソッド呼び出しを行うクラスと同一でなければなりません。clone()プロパティのcloneメソッドです。getName()プロパティ名を返します。getType()プロパティ型を返します。
ValuePropertyのサブクラスは常にPropertyType.VALUEを返します。getValue()プロパティ値を返します。データ型を返します。voidinit(ExecuteContext context) プロパティを実行コンテキストで初期化します。booleanこのプロパティがマッパーでのMapping可能な場合はtrueを返します。booleanisNull()このプロパティの値がnullの場合はtrueを返します。booleanこのプロパティが必須プロパティの場合はtrueを返します。voidvoidsetRequired(boolean b) このプロパティが必須であるかどうかを設定します。voidコンパイル時に値を設定します。toString()プロパティ値を文字列として返します。
-
Constructor Details
-
ValueProperty
ValueProperty(name, valueType, false, true) と同じです。 -
ValueProperty
ValueProperty(name, valueType, required true) と同じです。 -
ValueProperty
コンストラクタ- Parameters:
name- プロパティ名valueType- データ型required- このプロパティが必須プロパティの場合はtruemapable- このプロパティがMapping可能な場合はtrue
-
-
Method Details
-
getName
Description copied from interface:Propertyプロパティ名を返します。 -
getType
プロパティ型を返します。
ValuePropertyのサブクラスは常にPropertyType.VALUEを返します。 -
setRequired
public void setRequired(boolean b) このプロパティが必須であるかどうかを設定します。 -
isRequired
public boolean isRequired()Description copied from interface:Propertyこのプロパティが必須プロパティの場合はtrueを返します。- Specified by:
isRequiredin interfaceProperty
-
isMapable
public boolean isMapable()Description copied from interface:PropertyこのプロパティがマッパーでのMapping可能な場合はtrueを返します。 -
getValueType
データ型を返します。 -
setString
コンパイル時に値を設定します。- Parameters:
str- プロパティ値として設定される文字列- Throws:
PropertyException
-
isNull
public boolean isNull()Description copied from interface:Propertyこのプロパティの値がnullの場合はtrueを返します。 -
toString
Description copied from interface:Propertyプロパティ値を文字列として返します。 -
resetMacro
public void resetMacro() -
getValue
プロパティ値を返します。 -
clone
Description copied from interface:Propertyプロパティのcloneメソッドです。 -
assign
Description copied from interface:Propertyこのプロパティの内容を引数のPropertyにコピーします。
引数となるPropertyのクラスはメソッド呼び出しを行うクラスと同一でなければなりません。 -
init
Description copied from interface:Propertyプロパティを実行コンテキストで初期化します。
-