com.infoteria.asteria.flowlibrary2.property
Class FilePathProperty

java.lang.Object
  |
  +--com.infoteria.asteria.flowlibrary2.property.ValueProperty
        |
        +--com.infoteria.asteria.flowlibrary2.property.StringProperty
              |
              +--com.infoteria.asteria.flowlibrary2.property.FilePathProperty
All Implemented Interfaces:
Cloneable, Property

Deprecated. 今後はStringPropertyとPathResolverPropertyを組み合わせて使用してください。

public class FilePathProperty
extends StringProperty

StringPropertyを拡張してFilePathの設定に特化したクラスです。
HomeModeを設定することにより相対パスを設定されたユーザのHomeDirectoryで補完したパスを取得できます。


Field Summary
static int HOME_OWNER
          Deprecated. setHomeModeで使用するシンボル - ProjectOwner
static int HOME_USER
          Deprecated. setHomeModeで使用するシンボル - ExecuteUser
static String STR_HOME_OWNER
          Deprecated. setHomeModeで使用するシンボル - ProjectOwner
static String STR_HOME_USER
          Deprecated. setHomeModeで使用するシンボル - ExecuteUser
 
Constructor Summary
FilePathProperty(String name)
          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
 void assign(Property prop)
          Deprecated.  
 File getExistFile(ExecuteContext context)
          Deprecated. ファイルを取得します。
設定されているファイル名が相対パスの場合はHomeModeの設定値にしたがってユーザのホームディレクトリを補完します。
そのファイルが存在しない場合はExceptionとなります。
 File getFile(ExecuteContext context)
          Deprecated. ファイルを取得します。
設定されているファイル名が相対パスの場合はHomeModeの設定値にしたがってユーザのホームディレクトリを補完します。
 String getFileName(ExecuteContext context)
          Deprecated. ファイル名を取得します。
設定されているファイル名が相対パスの場合はHomeModeの設定値にしたがってユーザのホームディレクトリを補完します。
 int getHomeMode()
          Deprecated. HomeModeを取得します。
static int getHomeModeFromString(String str)
          Deprecated. 文字列のHomeModeをintに変換します。
 void setHomeMode(int value)
          Deprecated. HomeModeを設定します。
設定値にはstaticで宣言されているシンボルを使用します。
 void setHomeMode(String str)
          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 Detail

HOME_OWNER

public static final int HOME_OWNER
Deprecated. 
setHomeModeで使用するシンボル - ProjectOwner

HOME_USER

public static final int HOME_USER
Deprecated. 
setHomeModeで使用するシンボル - ExecuteUser

STR_HOME_OWNER

public static final String STR_HOME_OWNER
Deprecated. 
setHomeModeで使用するシンボル - ProjectOwner

STR_HOME_USER

public static final String STR_HOME_USER
Deprecated. 
setHomeModeで使用するシンボル - ExecuteUser
Constructor Detail

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 Detail

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のクラスはメソッド呼び出しを行うクラスと同一でなければなりません。
Overrides:
assign in class ValueProperty