com.infoteria.asteria.flowlibrary2.property
Class ValueProperty

java.lang.Object
  |
  +--com.infoteria.asteria.flowlibrary2.property.ValueProperty
All Implemented Interfaces:
java.lang.Cloneable, Property
Direct Known Subclasses:
BooleanProperty, DateProperty, EnumProperty, IntegerProperty, StringProperty

public abstract class ValueProperty
extends java.lang.Object
implements Property, java.lang.Cloneable

Valueクラスをラップするプロパティの基底クラスです。
このクラスのサブクラスであるプロパティはMapperでMappingすることができます。


Constructor Summary
protected ValueProperty(java.lang.String name, Value.Type valueType)
          ValueProperty(name, valueType, false, true) と同じです。
protected ValueProperty(java.lang.String name, Value.Type valueType, boolean required)
          ValueProperty(name, valueType, required true) と同じです。
protected ValueProperty(java.lang.String name, Value.Type valueType, boolean required, boolean mapable)
          コンストラクタ
 
Method Summary
 void assign(Property prop)
           
 java.lang.Object clone()
           
 java.lang.String getName()
           
 PropertyType getType()
          プロパティ型を返します。
ValuePropertyのサブクラスは常にPropertyType.VALUEを返します。
 Value getValue()
          プロパティ値を返します。
 Value.Type getValueType()
          データ型を返します。
 void init(ExecuteContext context)
           
 boolean isMapable()
           
 boolean isNull()
           
 boolean isRequired()
           
 void resetMacro()
           
 void setRequired(boolean b)
          このプロパティが必須であるかどうかを設定します。
 void setString(java.lang.String str)
          コンパイル時に値を設定します。
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValueProperty

protected ValueProperty(java.lang.String name,
                        Value.Type valueType)
ValueProperty(name, valueType, false, true) と同じです。

ValueProperty

protected ValueProperty(java.lang.String name,
                        Value.Type valueType,
                        boolean required)
ValueProperty(name, valueType, required true) と同じです。

ValueProperty

protected ValueProperty(java.lang.String name,
                        Value.Type valueType,
                        boolean required,
                        boolean mapable)
コンストラクタ
Parameters:
name - プロパティ名
valueType - データ型
required - このプロパティが必須プロパティの場合はtrue
mapable - このプロパティがMapping可能な場合はtrue
Method Detail

getName

public java.lang.String getName()
Description copied from interface: Property
プロパティ名を返します。
Specified by:
getName in interface Property

getType

public PropertyType getType()
プロパティ型を返します。
ValuePropertyのサブクラスは常にPropertyType.VALUEを返します。
Specified by:
getType in interface Property

setRequired

public void setRequired(boolean b)
このプロパティが必須であるかどうかを設定します。

isRequired

public boolean isRequired()
Description copied from interface: Property
このプロパティが必須プロパティの場合はtrueを返します。
Specified by:
isRequired in interface Property

isMapable

public boolean isMapable()
Description copied from interface: Property
このプロパティがマッパーでのMapping可能な場合はtrueを返します。
Specified by:
isMapable in interface Property

getValueType

public Value.Type getValueType()
データ型を返します。

setString

public void setString(java.lang.String str)
               throws PropertyException
コンパイル時に値を設定します。
Parameters:
str - プロパティ値として設定される文字列

isNull

public boolean isNull()
Description copied from interface: Property
このプロパティの値がnullの場合はtrueを返します。
Specified by:
isNull in interface Property

toString

public java.lang.String toString()
Description copied from interface: Property
プロパティ値を文字列として返します。
Specified by:
toString in interface Property
Overrides:
toString in class java.lang.Object

resetMacro

public void resetMacro()

getValue

public Value getValue()
プロパティ値を返します。

clone

public java.lang.Object clone()
Description copied from interface: Property
プロパティのcloneメソッドです。
Specified by:
clone in interface Property
Overrides:
clone in class java.lang.Object

assign

public void assign(Property prop)
Description copied from interface: Property
このプロパティの内容を引数のPropertyにコピーします。
引数となるPropertyのクラスはメソッド呼び出しを行うクラスと同一でなければなりません。
Specified by:
assign in interface Property

init

public void init(ExecuteContext context)
Description copied from interface: Property
プロパティを実行コンテキストで初期化します。
Specified by:
init in interface Property