All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.w3c.jigsaw.cvs.AutoLookupDirectory

java.lang.Object
   |
   +----org.w3c.tools.resources.AttributeHolder
           |
           +----org.w3c.tools.resources.Resource
                   |
                   +----org.w3c.tools.resources.FramedResource
                           |
                           +----org.w3c.tools.resources.AbstractContainer
                                   |
                                   +----org.w3c.tools.resources.ContainerResource
                                           |
                                           +----org.w3c.tools.resources.DirectoryResource
                                                   |
                                                   +----org.w3c.jigsaw.resources.DirectoryResource
                                                           |
                                                           +----org.w3c.jigsaw.cvs.AutoLookupDirectory

public class AutoLookupDirectory
extends DirectoryResource
A special version of DirectoryResource that can fetch a file from CVS directly if it is not already here. It can alos do an automatic update, depending on a flag


Constructor Index

 o AutoLookupDirectory()

Method Index

 o createDirectoryResource(String)
Create a DirectoryResource and the physical directory too.
 o getCvsManager()
Get the appropriate CVS manager for the directory we handle.
 o isAutoUpdatable()
tell if we must always do an update.
 o isCvsExtensible()
tell if we must add in cvs the new puted documents.
 o lookup(String)
Lookup the resource having the given name in this directory.

Constructors

 o AutoLookupDirectory
 public AutoLookupDirectory()

Methods

 o getCvsManager
 protected synchronized CvsDirectory getCvsManager() throws CvsException
Get the appropriate CVS manager for the directory we handle.

Returns:
A CvsDirectory instance.
Throws: CvsException
If we couldn't get the manager.
 o isAutoUpdatable
 public boolean isAutoUpdatable()
tell if we must always do an update.

 o isCvsExtensible
 public boolean isCvsExtensible()
tell if we must add in cvs the new puted documents.

 o createDirectoryResource
 public ResourceReference createDirectoryResource(String name)
Create a DirectoryResource and the physical directory too. Add the new directory in the CVS repository.

Parameters:
name - the name of the resource.
Returns:
A ResourceReference instance.
Overrides:
createDirectoryResource in class DirectoryResource
 o lookup
 public ResourceReference lookup(String name)
Lookup the resource having the given name in this directory. if the resource is not present, it will try to fetch it from the Cvs repository.

Parameters:
name - The name of the resource.
Returns:
A ResourceReference instance, or null.
Overrides:
lookup in class DirectoryResource

All Packages  Class Hierarchy  This Package  Previous  Next  Index