|
|||||||||
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.PathResolverProperty
ファイルパスを解決するプロパティです。
Field Summary | |
static int |
INVALID
不正なプロパティ値 |
static int |
OWNER_HOME
Mode - 相対パスの起点がホームディレクトリ |
static int |
RELATIVE
Mode - 相対パスの起点がプロジェクトフォルダ |
static java.lang.String |
STR_EXECUTE_USER
相対パスの起点が実行ユーザーのホームディレクトリであることをあらわす文字列(ExecuteUser) |
static java.lang.String |
STR_PROJECT_OWNER
相対パスの起点がホームディレクトリであることをあらわす文字列(ProjectOwner) |
static java.lang.String |
STR_RELATIVE
相対パスの起点がプロジェクトフォルダであることをあらわす文字列(Relative) |
static int |
USER_HOME
Mode - 相対パスの起点が実行ユーザーのホームディレクトリ |
Constructor Summary | |
PathResolverProperty(java.lang.String name,
java.lang.String defValue)
プロパティ名とデフォルト値を指定してPathResolverPropertyを作成します。 |
Method Summary | |
void |
assign(Property prop)
|
java.io.File |
getExistFile(ExecuteContext context,
java.lang.String path)
pathの表すFileオブジェクトを返します。 返されたFileが存在しない場合はExceptionになります。 |
java.io.File |
getFile(ExecuteContext context,
java.lang.String str)
strの表すFileオブジェクトを返します。 相対パスはモードによって解決されます。 |
java.io.File |
getFile(User user,
java.lang.String dir,
java.lang.String str)
|
java.lang.String |
getFilePath(ExecuteContext context,
java.lang.String path)
pathの表すFileの絶対パスをStringで返します。 |
int |
getMode()
モードを返します。 |
boolean |
isAllowAbsolute()
絶対パスの使用を許すかどうかを返します。 |
boolean |
isAllowUpDir()
「..」の使用を許すかどうかを返します。 |
void |
setAllowAbsolute(boolean b)
絶対パスの使用を許すかどうかを設定します。 |
void |
setAllowUpDir(boolean b)
「..」の使用を許すかどうかを設定します。 |
void |
setString(java.lang.String str)
|
static int |
strToMode(java.lang.String s)
|
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, toString |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int INVALID
public static final int RELATIVE
public static final int OWNER_HOME
public static final int USER_HOME
public static final java.lang.String STR_RELATIVE
public static final java.lang.String STR_PROJECT_OWNER
public static final java.lang.String STR_EXECUTE_USER
Constructor Detail |
public PathResolverProperty(java.lang.String name, java.lang.String defValue)
Method Detail |
public static int strToMode(java.lang.String s)
public boolean isAllowAbsolute()
public void setAllowAbsolute(boolean b)
public boolean isAllowUpDir()
public void setAllowUpDir(boolean b)
public void setString(java.lang.String str) throws PropertyException
ValueProperty
setString
in class ValueProperty
com.infoteria.asteria.flowlibrary2.property.ValueProperty
str
- プロパティ値として設定される文字列public int getMode()
public java.io.File getFile(ExecuteContext context, java.lang.String str) throws PropertyException
public java.io.File getFile(User user, java.lang.String dir, java.lang.String str) throws PropertyException
public java.io.File getExistFile(ExecuteContext context, java.lang.String path) throws PropertyException, java.io.FileNotFoundException
public java.lang.String getFilePath(ExecuteContext context, java.lang.String path) throws PropertyException
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 |