    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

##

AutoLookupDirectory()

##

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

##

AutoLookupDirectory

     public AutoLookupDirectory()

##

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.

isAutoUpdatable

     public boolean isAutoUpdatable()

  tell if we must always do an update.

isCvsExtensible

     public boolean isCvsExtensible()

  tell if we must add in cvs the new puted documents.

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

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