net.sf.jfilesync.engine
Class BasicFile
java.lang.Object
net.sf.jfilesync.engine.BasicFile
- Direct Known Subclasses:
- UnifyFile
public abstract class BasicFile
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
BasicFile
public BasicFile(TFileProperties file,
java.lang.String rootPath,
TPathControlInterface pathControl)
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()