|
GeoSoft API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Object | +--DirectoryEntry
An abstract class representing an entry in a generic directory structure. To an entry there is associated a back-end object, the item, which is client specific.
| Constructor Summary | |
DirectoryEntry(Object item)
Create a directory entry with name according to the item toString(). |
|
DirectoryEntry(Object item,
String name)
Create a directory entry. |
|
| Method Summary | |
int |
compareTo(Object object)
Compare names of the two entries. |
boolean |
equals(Object object)
Return true if this entry equals the specified entry. |
Object |
getItem()
Get item of this entry. |
String |
getName()
Get name of this entry. |
Folder |
getParent()
Get parent of this entry. |
Object[] |
getPath()
Return the path structure of this entry. |
boolean |
isFolder()
Return true if this is a folder entry. |
abstract boolean |
isLeaf()
Return true if this is a leaf entry. |
abstract void |
print(int indent)
|
void |
setItem(Object item)
Set the item of this entry. |
void |
setName(String name)
Set name of this entry. |
String |
toString()
Represent this entry as a string. |
| Methods inherited from class Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public DirectoryEntry(Object item,
String name)
item - Item contained in this directory entry.name - Name of this directory entry.public DirectoryEntry(Object item)
item - Item contained in this directory entry.| Method Detail |
public int compareTo(Object object)
compareTo in interface Comparableobject - Object to compare to.
public boolean equals(Object object)
equals in class Objectobject - Object to compare to.
public abstract boolean isLeaf()
public boolean isFolder()
public void setName(String name)
name - public String getName()
public String toString()
toString in class Objectpublic void setItem(Object item)
item - Item of this entry.public Object getItem()
public Folder getParent()
public Object[] getPath()
public abstract void print(int indent)
|
GeoSoft API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||