|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.fstreem.FileSystemTreeNode
A tree node that is based on the underlying file system.
Field Summary | |
protected java.io.File |
location
|
Method Summary | |
static FileSystemTreeNode |
create(java.io.File location)
Public factory for creating FileSystemTreeNode s. |
boolean |
equals(java.lang.Object obj)
Two nodes are equal if their underlying File instances are
equal. |
abstract FileSystemTreeNode |
getChildAt(int index)
Returns the node at the specified index. |
abstract int |
getChildCount()
Returns the number of child File instances under this
node. |
java.io.File |
getFile()
Returns the File instance behind this node. |
int |
hashCode()
|
abstract boolean |
isFile()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected final java.io.File location
Method Detail |
public java.io.File getFile()
File
instance behind this node.
public abstract int getChildCount() throws NotAFolderException
File
instances under this
node.
NotAFolderException
- If this node returns true
for
isFile()
.public abstract FileSystemTreeNode getChildAt(int index) throws NotAFolderException
The child File
instances are returned in order,
according to FileComparator
.
index
- Must be 0 <= index <= getChildCount() - 1
FileSystemTreeNode
instance
representing the node at the specified index.
NotAFolderException
- If this node returns true
for
isFile()
.public abstract boolean isFile()
public int hashCode()
public boolean equals(java.lang.Object obj)
File
instances are
equal.
obj
-
true
if the two nodes represent the same
file system location, false
otherwise.public java.lang.String toString()
public static FileSystemTreeNode create(java.io.File location)
FileSystemTreeNode
s.
location
- The file system location to which the node should be
attached.
FileSystemTreeNode
instance.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |