org.iges.anagram
Class DirHandle
java.lang.Object
|
+--org.iges.anagram.Handle
|
+--org.iges.anagram.DirHandle
- All Implemented Interfaces:
- java.io.Serializable
- public class DirHandle
- extends Handle
Represents a sub-directory of the server catalog.
Directory names do not end with '/'.
The one exception is that the root directory of the catalog has
the name "/".
- See Also:
- Serialized Form
Field Summary |
protected java.util.SortedMap |
entries
|
Constructor Summary |
DirHandle(java.lang.String completeName)
|
Method Summary |
boolean |
contains(java.lang.String completeName)
Returns true if this directory contains a handle that
matches the name given |
java.util.Map |
getEntries(boolean recurse)
Returns a Map containing all entries in this directory. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
entries
protected java.util.SortedMap entries
DirHandle
public DirHandle(java.lang.String completeName)
throws AnagramException
contains
public boolean contains(java.lang.String completeName)
- Returns true if this directory contains a handle that
matches the name given
getEntries
public java.util.Map getEntries(boolean recurse)
- Returns a Map containing all entries in this directory.
The keys are the names of the entries, and the values are the
Handle objects associated with those names.
- Parameters:
recurse
- If true, the Map will also contain all entries in all
sub-directories. In this case, handles for the subdirectories
themselves will be omitted.