|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.File
com.ibm.are.common.DirectoryTreeItem
public class DirectoryTreeItem
The DirectoryTreeItem
class represents a single item in a directory tree.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT
Copyright for class bytecode |
protected int |
nestingLevel
The level within the directory tree where the item is located or, said another way, how deep within the tree the item is. |
Fields inherited from class java.io.File |
---|
pathSeparator, pathSeparatorChar, separator, separatorChar |
Constructor Summary | |
---|---|
DirectoryTreeItem(java.io.File path,
int level)
Constructs a DirectoryTreeItem object with the specified path name |
|
DirectoryTreeItem(java.io.File parent,
java.lang.String child)
Constructs a DirectoryTreeItem object with the specified parent and child path |
|
DirectoryTreeItem(java.lang.String pathname)
Constructs a DirectoryTreeItem object with the specified path name |
|
DirectoryTreeItem(java.lang.String parent,
java.lang.String child)
Constructs a DirectoryTreeItem object with the specified parent and child path |
|
DirectoryTreeItem(java.net.URI uri)
Constructs a DirectoryTreeItem object with the specified URI |
Method Summary | |
---|---|
int |
getNestingLevel()
Retrieves the nesting level (depth) of the directory tree item |
void |
setNestingLevel(int nestingLevel)
Sets the nesting level (depth) of the directory tree item |
Methods inherited from class java.io.File |
---|
canExecute, canRead, canWrite, compareTo, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, exists, getAbsoluteFile, getAbsolutePath, 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, toString, toURI, toURL |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
protected int nestingLevel
Constructor Detail |
---|
public DirectoryTreeItem(java.lang.String pathname)
DirectoryTreeItem
object with the specified path name
pathname
- The fully qualified path to the directory tree itempublic DirectoryTreeItem(java.io.File path, int level)
DirectoryTreeItem
object with the specified path name
path
- The fully qualified path to the directory tree itemlevel
- The level within the directory tree where the item is locatedpublic DirectoryTreeItem(java.net.URI uri)
DirectoryTreeItem
object with the specified URI
uri
- The fully qualified path to the directory tree itempublic DirectoryTreeItem(java.lang.String parent, java.lang.String child)
DirectoryTreeItem
object with the specified parent and child path
parent
- The parent pathchild
- The child pathFile.File(String, String)
public DirectoryTreeItem(java.io.File parent, java.lang.String child)
DirectoryTreeItem
object with the specified parent and child path
parent
- The parent pathchild
- The child pathFile.File(File, String)
Method Detail |
---|
public int getNestingLevel()
public void setNestingLevel(int nestingLevel)
nestingLevel
- the nesting level
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |