spin.demo.complex

Class Directory


public class Directory
extends java.lang.Object

A directory.

Constructor Summary

Directory(String name, boolean isLeaf)
Constructor.

Method Summary

String
getName()
Get the name.
boolean
isLeaf()
Test if directory has children.

Constructor Details

Directory

public Directory(String name,
                 boolean isLeaf)
Constructor.
Parameters:
name - name of this directory
isLeaf - is this directory a leaf

Method Details

getName

public String getName()
Get the name.
Returns:
name of this directory

isLeaf

public boolean isLeaf()
Test if directory has children.
Returns:
true if this directory is a leaf