|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.infoteria.asteria.flowlibrary2.property.ValueProperty | +--com.infoteria.asteria.flowlibrary2.property.StringProperty | +--com.infoteria.asteria.flowlibrary2.property.FilePathProperty
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 |
public static final int HOME_OWNER
public static final int HOME_USER
public static final String STR_HOME_OWNER
public static final String STR_HOME_USER
Constructor Detail |
public FilePathProperty(String name)
public FilePathProperty(String name, boolean required)
public FilePathProperty(String name, boolean required, boolean mapable)
public FilePathProperty(String name, boolean required, boolean mapable, String value)
name
- プロパティ名required
- このプロパティが必須プロパティの場合はtruemapable
- このプロパティがMapping可能な場合はtruevalue
- デフォルト値Method Detail |
public int getHomeMode()
public void setHomeMode(int value)
public void setHomeMode(String str)
public static int getHomeModeFromString(String str)
public String getFileName(ExecuteContext context) throws PropertyException
PropertyException
- HomeMode=ExecuteUserで実行ユーザが設定されていない場合public File getFile(ExecuteContext context) throws PropertyException
PropertyException
- HomeMode=ExecuteUserで実行ユーザが設定されていない場合public File getExistFile(ExecuteContext context) throws PropertyException
PropertyException
- HomeMode=ExecuteUserで実行ユーザが設定されていない場合public void assign(Property prop)
Property
assign
in class ValueProperty
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |