net.sf.jfilesync.sync2
Class SyncFile

java.lang.Object
  extended by net.sf.jfilesync.sync2.SyncFile

public class SyncFile
extends java.lang.Object


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

Field Detail

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
Constructor Detail

SyncFile

public SyncFile(TFileProperties file,
                java.lang.String relativePath)
Method Detail

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)