net.sf.jfilesync.sync2
Class SyncFile
java.lang.Object
net.sf.jfilesync.sync2.SyncFile
public class SyncFile
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
file
private final TFileProperties file
syncHash
private java.util.Hashtable<java.lang.Integer,SyncAttribute> syncHash
relativePath
private final java.lang.String relativePath
ignored
private boolean ignored
excluded
private boolean excluded
children
private java.util.List<SyncFile> children
LOGGER
private static final java.util.logging.Logger LOGGER
SyncFile
public SyncFile(TFileProperties file,
java.lang.String relativePath)
getFile
public TFileProperties getFile()
addSyncAttribute
public void addSyncAttribute(SyncAttribute attr)
getSyncAttributes
public SyncAttribute[] getSyncAttributes()
getSyncAttribute
public SyncAttribute getSyncAttribute(int attributeID)
setExcluded
public void setExcluded(boolean b)
isExcluded
public boolean isExcluded()
getRelativePath
public java.lang.String getRelativePath()
addChild
public void addChild(SyncFile child)
getChildren
public SyncFile[] getChildren()
getAllChildren
public SyncFile[] getAllChildren()
setIgnored
public void setIgnored(boolean ignored)
isIgnored
public boolean isIgnored()
- returns true if users has set this file to be ignored in sync process
- Parameters:
ignored -
findChild
public SyncFile findChild(java.lang.String absoluteFileName)
getChild
protected SyncFile getChild(SyncFile f,
java.lang.String absoluteFileName)
containsExcludedChild
public boolean containsExcludedChild()
containsExcluded
private boolean containsExcluded(SyncFile f)