net.sourceforge.cvsgrab
Class RemoteDirectory

java.lang.Object
  extended by net.sourceforge.cvsgrab.RemoteDirectory

public class RemoteDirectory
extends Object

Represents a directory from the remote CVS server

Version:
1.0
Author:
Ludovic Claude
Created:
April 19, 2002

Constructor Summary
RemoteDirectory(RemoteDirectory parentDirectory, String name)
          Constructor for RemoteDirectory
RemoteDirectory(RemoteRepository repository, String dirPath, String localDir)
          Constructor for the RemoteDirectory object
 
Method Summary
 void diffContents(PrintWriter writer)
          Diff the contents of the repository and store the diffs in the file
 String getDirectoryPath()
          Gets the directory path
 String getLocalDir()
           
 RemoteFile[] getRemoteFiles()
          Gets the remote files attribute
 RemoteRepository getRemoteRepository()
           
 String getUrl()
          Gets the url attribute
 void loadContents()
          Load the contents of the web page and upload the set of versioned files and sub directories as needed.
 void registerRemoteFile(RemoteFile file)
          Registers the remote file in this directory
 String toString()
          
 void unregisterRemoteFile(RemoteFile file)
          Unregisters the remote file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RemoteDirectory

public RemoteDirectory(RemoteRepository repository,
                       String dirPath,
                       String localDir)
Constructor for the RemoteDirectory object

Parameters:
repository - The repository
dirPath - The name of the directory
localDir - The local name of the directory

RemoteDirectory

public RemoteDirectory(RemoteDirectory parentDirectory,
                       String name)
Constructor for RemoteDirectory

Parameters:
parentDirectory - The parent directory
name - The name of the directory
Method Detail

getUrl

public String getUrl()
Gets the url attribute

Returns:
The url value

getDirectoryPath

public String getDirectoryPath()
Gets the directory path

Returns:
The directory path

getLocalDir

public String getLocalDir()
Returns:
the local name of the directory.

getRemoteFiles

public RemoteFile[] getRemoteFiles()
Gets the remote files attribute

Returns:
The remoteFiles value

getRemoteRepository

public RemoteRepository getRemoteRepository()
Returns:
the remote repository

registerRemoteFile

public void registerRemoteFile(RemoteFile file)
Registers the remote file in this directory

Parameters:
file - The remote file to register

unregisterRemoteFile

public void unregisterRemoteFile(RemoteFile file)
Unregisters the remote file

Parameters:
file - The remote file to unrgister

loadContents

public void loadContents()
                  throws Exception
Load the contents of the web page and upload the set of versioned files and sub directories as needed.

Throws:
Exception

diffContents

public void diffContents(PrintWriter writer)
                  throws Exception
Diff the contents of the repository and store the diffs in the file

Parameters:
writer -
Throws:
Exception

toString

public String toString()

Overrides:
toString in class Object
Returns:
a string representation


Copyright © 2002-2005 Ludovic Claude. All Rights Reserved.