org.bibalex.daf.handlers.filehandler
Class FileHandlerObservedObject

java.lang.Object
  extended by org.bibalex.daf.handlers.filehandler.FileHandlerObservedObject

public class FileHandlerObservedObject
extends java.lang.Object

This class represents the transfered object through the Observer Notify Method It is an empty class that acts as a struct.

Author:
Fadi.Edward

Nested Class Summary
static class FileHandlerObservedObject.FileHandlerOperation
          Enum representing the different operations that can be a done.
 
Field Summary
 FileHandlerObservedObject.FileHandlerOperation fileHandlerOperation
          represents the operation applied to the file.
 java.lang.String localFileName
          Maintains local file name (path)
 java.lang.String remoteFileName
          Maintains remote file name (path)
 
Constructor Summary
FileHandlerObservedObject(java.lang.String fileName, FileHandlerObservedObject.FileHandlerOperation fileHandlerOperation, boolean localOrRemote)
          Constructor
FileHandlerObservedObject(java.lang.String localFileName, java.lang.String remoteFileName, FileHandlerObservedObject.FileHandlerOperation fileHandlerOperation)
          Constructor
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

localFileName

public java.lang.String localFileName
Maintains local file name (path)


remoteFileName

public java.lang.String remoteFileName
Maintains remote file name (path)


fileHandlerOperation

public FileHandlerObservedObject.FileHandlerOperation fileHandlerOperation
represents the operation applied to the file.

Constructor Detail

FileHandlerObservedObject

public FileHandlerObservedObject(java.lang.String localFileName,
                                 java.lang.String remoteFileName,
                                 FileHandlerObservedObject.FileHandlerOperation fileHandlerOperation)
Constructor

Parameters:
localFileName - local file name
remoteFileName - remote file name
fileHandlerOperation - the applied operation

FileHandlerObservedObject

public FileHandlerObservedObject(java.lang.String fileName,
                                 FileHandlerObservedObject.FileHandlerOperation fileHandlerOperation,
                                 boolean localOrRemote)
Constructor

Parameters:
fileName - file name
fileHandlerOperation - the applied operation
localOrRemote - indicates whether the mentioned file is local or remote, true if local false otherwise.