Class FilePathProperty

All Implemented Interfaces:
Property, Cloneable

@Deprecated public class FilePathProperty extends StringProperty
Deprecated.
今後はStringPropertyとPathResolverPropertyを組み合わせて使用してください。
StringPropertyを拡張してFilePathの設定に特化したクラスです。
HomeModeを設定することにより相対パスを設定されたユーザのHomeDirectoryで補完したパスを取得できます。
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Deprecated.
    setHomeModeで使用するシンボル - ProjectOwner
    static final int
    Deprecated.
    setHomeModeで使用するシンボル - ExecuteUser
    static final String
    Deprecated.
    setHomeModeで使用するシンボル - ProjectOwner
    static final String
    Deprecated.
    setHomeModeで使用するシンボル - ExecuteUser
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
    FilePathProperty(name, false, true, null) と同じです。
    FilePathProperty(String name, boolean required)
    Deprecated.
    FilePathProperty(name, required, true, null) と同じです。
    FilePathProperty(String name, boolean required, boolean mapable)
    Deprecated.
    FilePathProperty(name, required, mapable, null) と同じです。
    FilePathProperty(String name, boolean required, boolean mapable, String value)
    Deprecated.
    コンストラクタ
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Deprecated.
    このプロパティの内容を引数のPropertyにコピーします。
    引数となるPropertyのクラスはメソッド呼び出しを行うクラスと同一でなければなりません。
    Deprecated.
    ファイルを取得します。
    設定されているファイル名が相対パスの場合はHomeModeの設定値にしたがってユーザのホームディレクトリを補完します。
    そのファイルが存在しない場合はExceptionとなります。
    Deprecated.
    ファイルを取得します。
    設定されているファイル名が相対パスの場合はHomeModeの設定値にしたがってユーザのホームディレクトリを補完します。
    Deprecated.
    ファイル名を取得します。
    設定されているファイル名が相対パスの場合はHomeModeの設定値にしたがってユーザのホームディレクトリを補完します。
    int
    Deprecated.
    HomeModeを取得します。
    static int
    Deprecated.
    文字列のHomeModeをintに変換します。
    void
    setHomeMode(int value)
    Deprecated.
    HomeModeを設定します。
    設定値にはstaticで宣言されているシンボルを使用します。
    void
    Deprecated.
     

    Methods inherited from class com.infoteria.asteria.flowlibrary2.property.StringProperty

    setValue, strValue

    Methods inherited from class com.infoteria.asteria.flowlibrary2.property.ValueProperty

    clone, getName, getType, getValue, getValueType, init, isMapable, isNull, isRequired, resetMacro, setRequired, setString, toString

    Methods inherited from class java.lang.Object

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

    • HOME_OWNER

      public static final int HOME_OWNER
      Deprecated.
      setHomeModeで使用するシンボル - ProjectOwner
      See Also:
    • HOME_USER

      public static final int HOME_USER
      Deprecated.
      setHomeModeで使用するシンボル - ExecuteUser
      See Also:
    • STR_HOME_OWNER

      public static final String STR_HOME_OWNER
      Deprecated.
      setHomeModeで使用するシンボル - ProjectOwner
      See Also:
    • STR_HOME_USER

      public static final String STR_HOME_USER
      Deprecated.
      setHomeModeで使用するシンボル - ExecuteUser
      See Also:
  • Constructor Details

    • FilePathProperty

      public FilePathProperty(String name)
      Deprecated.
      FilePathProperty(name, false, true, null) と同じです。
    • FilePathProperty

      public FilePathProperty(String name, boolean required)
      Deprecated.
      FilePathProperty(name, required, true, null) と同じです。
    • FilePathProperty

      public FilePathProperty(String name, boolean required, boolean mapable)
      Deprecated.
      FilePathProperty(name, required, mapable, null) と同じです。
    • FilePathProperty

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

    • getHomeMode

      public int getHomeMode()
      Deprecated.
      HomeModeを取得します。
    • setHomeMode

      public void setHomeMode(int value)
      Deprecated.
      HomeModeを設定します。
      設定値にはstaticで宣言されているシンボルを使用します。
    • setHomeMode

      public void setHomeMode(String str)
      Deprecated.
    • getHomeModeFromString

      public static int getHomeModeFromString(String str)
      Deprecated.
      文字列のHomeModeをintに変換します。
    • getFileName

      public String getFileName(ExecuteContext context) throws PropertyException
      Deprecated.
      ファイル名を取得します。
      設定されているファイル名が相対パスの場合はHomeModeの設定値にしたがってユーザのホームディレクトリを補完します。
      Throws:
      PropertyException - HomeMode=ExecuteUserで実行ユーザが設定されていない場合
    • getFile

      public File getFile(ExecuteContext context) throws PropertyException
      Deprecated.
      ファイルを取得します。
      設定されているファイル名が相対パスの場合はHomeModeの設定値にしたがってユーザのホームディレクトリを補完します。
      Throws:
      PropertyException - HomeMode=ExecuteUserで実行ユーザが設定されていない場合
    • getExistFile

      public File getExistFile(ExecuteContext context) throws PropertyException
      Deprecated.
      ファイルを取得します。
      設定されているファイル名が相対パスの場合はHomeModeの設定値にしたがってユーザのホームディレクトリを補完します。
      そのファイルが存在しない場合はExceptionとなります。
      Throws:
      PropertyException - HomeMode=ExecuteUserで実行ユーザが設定されていない場合
      設定されているファイルが存在しない場合
    • assign

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