GeoSoft API

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)
           
 
Methods inherited from class DirectoryEntry
compareTo, equals, getItem, getName, getParent, getPath, isFolder, setItem, setName, toString
 
Methods inherited from class Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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

GeoSoft API

Copyright © 2004 - Geotechnical Software Services     geosoft.no