com.chaosserver.bilbo.data
Class Directory

java.lang.Object
  |
  +--com.chaosserver.bilbo.data.Directory

public class Directory
extends Object

Directory object represents the mappings contained in a single directory.

Holds a collection of FilenameMapping objects that represent the files in the directory that need to be mapped.

Since:
Bilbo 1.0

Field Summary
protected  Collection filenameMappings
          Holds the collection of FilenameMappings in this directory.
 
Constructor Summary
Directory()
          Default constructor.
 
Method Summary
 void addFilenameMapping(FilenameMapping filenameMapping)
          Adds a new FilenameMapping object to this directory.
 FilenameMapping findFilenameMapping(String style, String value)
          Finds a FilenameMapping held in this Directory.
 Collection getFilenameMappings()
          Getter method for the filename mappings.
 void setFilenameMappings(Collection filenameMappings)
          Setter method for the filename mappings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

filenameMappings

protected Collection filenameMappings
Holds the collection of FilenameMappings in this directory.

Constructor Detail

Directory

public Directory()
Default constructor.

Method Detail

setFilenameMappings

public void setFilenameMappings(Collection filenameMappings)
Setter method for the filename mappings.

Parameters:
filenameMappings - the value of filenameMappings

getFilenameMappings

public Collection getFilenameMappings()
Getter method for the filename mappings.

Returns:
the value of filenameMappings

addFilenameMapping

public void addFilenameMapping(FilenameMapping filenameMapping)
Adds a new FilenameMapping object to this directory.

Parameters:
filenameMapping - the new FilenameMapping to add

findFilenameMapping

public FilenameMapping findFilenameMapping(String style,
                                           String value)
                                    throws FilenameMappingNotFoundException
Finds a FilenameMapping held in this Directory.

Parameters:
style - the style of the filename being searched for
value - the value of the filename being searched for
Throws:
FilenameMappingNotFoundException - if the mapping cannot be found


Copyright © 20020226