Class ValueProperty

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

public abstract class ValueProperty extends Object implements Property, Cloneable
Valueクラスをラップするプロパティの基底クラスです。
このクラスのサブクラスであるプロパティはMapperでMappingすることができます。
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    ValueProperty(String name, Value.Type valueType)
    ValueProperty(name, valueType, false, true) と同じです。
    protected
    ValueProperty(String name, Value.Type valueType, boolean required)
    ValueProperty(name, valueType, required true) と同じです。
    protected
    ValueProperty(String name, Value.Type valueType, boolean required, boolean mapable)
    コンストラクタ
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    このプロパティの内容を引数のPropertyにコピーします。
    引数となるPropertyのクラスはメソッド呼び出しを行うクラスと同一でなければなりません。
    プロパティのcloneメソッドです。
    プロパティ名を返します。
    プロパティ型を返します。
    ValuePropertyのサブクラスは常にPropertyType.VALUEを返します。
    プロパティ値を返します。
    データ型を返します。
    void
    プロパティを実行コンテキストで初期化します。
    boolean
    このプロパティがマッパーでのMapping可能な場合はtrueを返します。
    boolean
    このプロパティの値がnullの場合はtrueを返します。
    boolean
    このプロパティが必須プロパティの場合はtrueを返します。
    void
     
    void
    setRequired(boolean b)
    このプロパティが必須であるかどうかを設定します。
    void
    コンパイル時に値を設定します。
    プロパティ値を文字列として返します。

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ValueProperty

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

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

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

    • getName

      public 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(String str) throws PropertyException
      コンパイル時に値を設定します。
      Parameters:
      str - プロパティ値として設定される文字列
      Throws:
      PropertyException
    • isNull

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

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

      public void resetMacro()
    • getValue

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

      public Object clone()
      Description copied from interface: Property
      プロパティのcloneメソッドです。
      Specified by:
      clone in interface Property
      Overrides:
      clone in class 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