net.hblok.io
Class AttributesFileFilter

java.lang.Object
  extended by net.hblok.io.AttributesFileFilter
All Implemented Interfaces:
FileFilter

public class AttributesFileFilter
extends Object
implements FileFilter

TODO: under construction

Author:
Havard Rast Blok

Field Summary
protected  boolean executeable
           
protected  boolean hidden
           
protected  Range<Long> lastModified
           
protected  Range<Long> length
           
protected  boolean readable
           
protected  boolean writeable
           
 
Constructor Summary
AttributesFileFilter()
           
 
Method Summary
 boolean accept(File pathname)
           
 Range<Long> getLastModified()
           
 Range<Long> getLength()
           
 boolean isExecuteable()
           
 boolean isHidden()
           
 boolean isReadable()
           
 boolean isWriteable()
           
 void setExecuteable(boolean executeable)
           
 void setHidden(boolean hidden)
           
 void setLastModified(Range<Calendar> lastModified)
           
 void setLastModifiedDate(Range<Date> lastModified)
           
 void setLastModifiedRange(Range<Long> lastModified)
           
 void setLength(long min, long max)
           
 void setLength(Range<Long> length)
           
 void setReadable(boolean readable)
           
 void setWriteable(boolean writeable)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hidden

protected boolean hidden

readable

protected boolean readable

writeable

protected boolean writeable

executeable

protected boolean executeable

lastModified

protected Range<Long> lastModified

length

protected Range<Long> length
Constructor Detail

AttributesFileFilter

public AttributesFileFilter()
Method Detail

accept

public boolean accept(File pathname)
Specified by:
accept in interface FileFilter

isHidden

public boolean isHidden()
Returns:
the hidden

setHidden

public void setHidden(boolean hidden)
Parameters:
hidden - the hidden to set

isExecuteable

public boolean isExecuteable()
Returns:
the executeable

setExecuteable

public void setExecuteable(boolean executeable)
Parameters:
executeable - the executeable to set

isReadable

public boolean isReadable()
Returns:
the readable

setReadable

public void setReadable(boolean readable)
Parameters:
readable - the readable to set

isWriteable

public boolean isWriteable()
Returns:
the writeable

setWriteable

public void setWriteable(boolean writeable)
Parameters:
writeable - the writeable to set

getLastModified

public Range<Long> getLastModified()
Returns:
the lastModified

setLastModified

public void setLastModified(Range<Calendar> lastModified)

setLastModifiedRange

public void setLastModifiedRange(Range<Long> lastModified)
Parameters:
lastModified - the lastModified to set

setLastModifiedDate

public void setLastModifiedDate(Range<Date> lastModified)

getLength

public Range<Long> getLength()
Returns:
the length

setLength

public void setLength(Range<Long> length)
Parameters:
length - the length to set

setLength

public void setLength(long min,
                      long max)