|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.File ilog.rules.util.IlrFile
public class IlrFile
Relative file class.
The IlrFile class extends java.io.File to add a root identifier. The relative file has a relative path that will be resolved by the application by matching the root identifier with a root directory registered on the application.
Field Summary | |
---|---|
static String |
PROTOCOL
|
Fields inherited from class java.io.File |
---|
pathSeparator, pathSeparatorChar, separator, separatorChar |
Fields inherited from interface ilog.rules.util.IlrURI |
---|
FILE_SEPARATOR |
Constructor Summary | |
---|---|
IlrFile(File file)
Creates a new relative file from a java.io.File. |
|
IlrFile(File parent,
String child)
Creates a new relative file from a parent abstract pathname and a child pathname string. |
|
IlrFile(String pathname)
Constructs a relative file from a String. |
|
IlrFile(String rootId,
File file)
Creates a new relative file from a root identifier and a java.io.File. |
|
IlrFile(String parent,
String child)
Creates a new relative file from a parent pathname string and a child pathname string. |
Method Summary | |
---|---|
protected Object |
clone()
|
boolean |
equals(Object obj)
|
File |
getAbsoluteFile()
|
String |
getAbsolutePath()
|
String |
getRootId()
Returns the root identifier. |
boolean |
isFiltered()
Returns true if the URI is filtered;
false otherwise. |
void |
setRootId(String rootId)
Set the root identifier of this relative file. |
String |
toString()
Returns the pathname string of this relative file. |
Methods inherited from class java.io.File |
---|
canExecute, canRead, canWrite, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, exists, getCanonicalFile, getCanonicalPath, getFreeSpace, getName, getParent, getParentFile, getPath, getTotalSpace, getUsableSpace, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setExecutable, setExecutable, setLastModified, setReadable, setReadable, setReadOnly, setWritable, setWritable, toURI, toURL |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface ilog.rules.util.IlrURI |
---|
exists, getDisplayPath, getDisplayRootId, getName, getPath, getType, isDirectory, lastModified |
Field Detail |
---|
public static final String PROTOCOL
Constructor Detail |
---|
public IlrFile(String pathname)
public IlrFile(String parent, String child)
public IlrFile(File parent, String child)
public IlrFile(File file)
public IlrFile(String rootId, File file)
Method Detail |
---|
protected Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public void setRootId(String rootId)
setRootId
in interface IlrURI
public String getRootId()
getRootId
in interface IlrURI
public boolean isFiltered()
IlrURI
true
if the URI is filtered;
false
otherwise.
isFiltered
in interface IlrURI
public File getAbsoluteFile()
getAbsoluteFile
in class File
public String getAbsolutePath()
getAbsolutePath
in class File
public boolean equals(Object obj)
equals
in class File
public String toString()
toString
in class File
|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |