Class UseConnectionProperty

All Implemented Interfaces:
Property, Cloneable

public class UseConnectionProperty extends BooleanProperty
Connectionプロパティを使用するかどうかを制御するプロパティです。
  • Constructor Details

    • UseConnectionProperty

      public UseConnectionProperty(String name)
      UseConnectionProperty(name, false, true) と同じです。
    • UseConnectionProperty

      public UseConnectionProperty(String name, boolean required)
      UseConnectionProperty(name, required, true) と同じです。
    • UseConnectionProperty

      public UseConnectionProperty(String name, boolean required, boolean mapable)
      コンストラクタ
      Parameters:
      name - プロパティ名
      required - このプロパティが必須プロパティの場合はtrue
      mapable - このプロパティがMapping可能な場合はtrue
    • UseConnectionProperty

      public UseConnectionProperty(String name, boolean required, boolean mapable, boolean value)
      コンストラクタ
      Parameters:
      name - プロパティ名
      required - このプロパティが必須プロパティの場合はtrue
      mapable - このプロパティがMapping可能な場合はtrue
      value - デフォルト値
  • Method Details

    • setConnectionProperty

      public void setConnectionProperty(ConnectionProperty conProp)
      このプロパティに連動して使用するかどうかを決定するConnectionPropertyを設定します。
    • setString

      public void setString(String str) throws PropertyException
      Description copied from class: ValueProperty
      コンパイル時に値を設定します。
      Overrides:
      setString in class ValueProperty
      Parameters:
      str - プロパティ値として設定される文字列
      Throws:
      PropertyException
    • clone

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

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