no.geosoft.cc.directory
Class DirectoryItem
Object
|
+--DirectoryEntry
|
+--DirectoryItem
- All Implemented Interfaces:
- Comparable
- public class DirectoryItem
- extends DirectoryEntry
A class representing a leaf node in a generic directory
structure.
- Author:
- GeoSoft
Constructor Summary |
DirectoryItem(Object item)
Create a directory item with the specified back-end item object. |
DirectoryItem(Object item,
String name)
Create a directory item with the specified back-end item object
and a given name. |
Method Summary |
boolean |
isLeaf()
Return true if this is a leaf node. |
void |
print(int indent)
|
DirectoryItem
public DirectoryItem(Object item)
- Create a directory item with the specified back-end item object.
- Parameters:
item
- Client specified back-end object.
DirectoryItem
public DirectoryItem(Object item,
String name)
- Create a directory item with the specified back-end item object
and a given name.
- Parameters:
item
- Client specified back-end object.name
- Name of this directory item.
isLeaf
public boolean isLeaf()
- Return true if this is a leaf node. A directory item is per definition
a leaf node, so this method always returns true.
- Specified by:
isLeaf
in class DirectoryEntry
- Returns:
- False always.
print
public void print(int indent)
- Specified by:
print
in class DirectoryEntry
Copyright © 2004 - Geotechnical Software Services geosoft.no