net.sf.jfilesync.engine
Class BasicFile

java.lang.Object
  extended by net.sf.jfilesync.engine.BasicFile
Direct Known Subclasses:
UnifyFile

public abstract class BasicFile
extends java.lang.Object


Field Summary
private  java.util.List<BasicFile> children
           
private  TFileProperties file
           
private  TPathControlInterface pathControl
           
private  java.lang.String rootPath
           
 
Constructor Summary
BasicFile(TFileProperties file, java.lang.String rootPath, TPathControlInterface pathControl)
           
 
Method Summary
 void addChild(BasicFile absFile)
           
abstract  BasicFile clone()
           
 java.lang.String getAbsolutePath()
           
 java.util.List<BasicFile> getChildren()
           
 long getFileModTime()
           
 java.lang.String getFileName()
           
 java.math.BigInteger getFileSize()
           
protected  TPathControlInterface getPathControl()
           
 java.lang.String getRelativePathToRoot()
           
protected  java.lang.String getRootPath()
           
protected  TFileProperties getTFileProperties()
           
 boolean hasChild(BasicFile file)
           
 boolean hasChildren()
           
 boolean isDirectory()
           
 void print()
           
 void setRootPath(java.lang.String sourceRootPath, java.lang.String targetRootPath)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

file

private final TFileProperties file

rootPath

private final java.lang.String rootPath

pathControl

private final TPathControlInterface pathControl

children

private final java.util.List<BasicFile> children
Constructor Detail

BasicFile

public BasicFile(TFileProperties file,
                 java.lang.String rootPath,
                 TPathControlInterface pathControl)
Method Detail

getTFileProperties

protected TFileProperties getTFileProperties()

getRootPath

protected java.lang.String getRootPath()

setRootPath

public void setRootPath(java.lang.String sourceRootPath,
                        java.lang.String targetRootPath)

getPathControl

protected TPathControlInterface getPathControl()

getAbsolutePath

public java.lang.String getAbsolutePath()

getFileName

public java.lang.String getFileName()

getRelativePathToRoot

public java.lang.String getRelativePathToRoot()

addChild

public void addChild(BasicFile absFile)

getChildren

public java.util.List<BasicFile> getChildren()

hasChildren

public boolean hasChildren()

isDirectory

public boolean isDirectory()

getFileSize

public final java.math.BigInteger getFileSize()

getFileModTime

public final long getFileModTime()

hasChild

public boolean hasChild(BasicFile file)

clone

public abstract BasicFile clone()
Overrides:
clone in class java.lang.Object

print

public void print()