spin.demo.complex
Class Directory

java.lang.Object
  extended by spin.demo.complex.Directory

public class Directory
extends java.lang.Object

A directory.


Constructor Summary
Directory(java.lang.String name, boolean isLeaf)
          Constructor.
 
Method Summary
 java.lang.String getName()
          Get the name.
 boolean isLeaf()
          Test if directory has children.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Directory

public Directory(java.lang.String name,
                 boolean isLeaf)
Constructor.

Parameters:
name - name of this directory
isLeaf - is this directory a leaf
Method Detail

isLeaf

public boolean isLeaf()
Test if directory has children.

Returns:
true if this directory is a leaf

getName

public java.lang.String getName()
Get the name.

Returns:
name of this directory


Copyright © 2007. All Rights Reserved.