com.application.areca.filter
Class FilterGroup

java.lang.Object
  extended by com.application.areca.filter.FilterGroup
All Implemented Interfaces:
ArchiveFilter, FileSystemIteratorFilter, Duplicable

public class FilterGroup
extends java.lang.Object
implements ArchiveFilter, FileSystemIteratorFilter


Author:
Olivier PETRUCCI

Areca Build ID : 7299034069467778562

Constructor Summary
FilterGroup()
           
 
Method Summary
 boolean acceptElement(java.io.File element)
          Tell whether the iterator will return the element to the caller
 boolean acceptIteration(java.io.File entry)
          Accepts (or refuses) an entry
 void acceptParameters(java.lang.String parameters)
          Parses the string provided as argument and inits the filter
 boolean acceptStorage(java.io.File entry)
          Accepts (or refuses) an entry
 void addFilter(ArchiveFilter f)
          Adds a filter and recomputes the cached values for the "doesExclusionApplyToChildrenImpl" method.
 Duplicable duplicate()
          Create a copy of the Duplicable
 boolean equals(java.lang.Object obj)
           
 java.util.Iterator getFilterIterator()
           
 java.lang.String getStringParameters()
          Returns the filter's parameters as a String
 int hashCode()
           
 boolean isAnd()
           
 boolean isExclude()
          Indique si le filtre fonctionne en inclusion ou exclusion
 void remove(ArchiveFilter filter)
           
 boolean requiresParameters()
          Tells wether the filter needs to be parametrized or not
 void setAnd(boolean isAnd)
           
 void setExclude(boolean exclude)
          Indique si le filtre fonctionne en inclusion ou exclusion
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterGroup

public FilterGroup()
Method Detail

addFilter

public void addFilter(ArchiveFilter f)
Adds a filter and recomputes the cached values for the "doesExclusionApplyToChildrenImpl" method.


getFilterIterator

public java.util.Iterator getFilterIterator()

isAnd

public boolean isAnd()

setAnd

public void setAnd(boolean isAnd)

acceptIteration

public boolean acceptIteration(java.io.File entry)
Accepts (or refuses) an entry

Specified by:
acceptIteration in interface ArchiveFilter
Specified by:
acceptIteration in interface FileSystemIteratorFilter

acceptStorage

public boolean acceptStorage(java.io.File entry)
Accepts (or refuses) an entry

Specified by:
acceptStorage in interface ArchiveFilter

acceptElement

public boolean acceptElement(java.io.File element)
Description copied from interface: FileSystemIteratorFilter
Tell whether the iterator will return the element to the caller

Specified by:
acceptElement in interface FileSystemIteratorFilter

remove

public void remove(ArchiveFilter filter)

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

duplicate

public Duplicable duplicate()
Description copied from interface: Duplicable
Create a copy of the Duplicable

Specified by:
duplicate in interface Duplicable

isExclude

public boolean isExclude()
Description copied from interface: ArchiveFilter
Indique si le filtre fonctionne en inclusion ou exclusion

Specified by:
isExclude in interface ArchiveFilter
Returns:

requiresParameters

public boolean requiresParameters()
Description copied from interface: ArchiveFilter
Tells wether the filter needs to be parametrized or not

Specified by:
requiresParameters in interface ArchiveFilter

getStringParameters

public java.lang.String getStringParameters()
Description copied from interface: ArchiveFilter
Returns the filter's parameters as a String

Specified by:
getStringParameters in interface ArchiveFilter

acceptParameters

public void acceptParameters(java.lang.String parameters)
Description copied from interface: ArchiveFilter
Parses the string provided as argument and inits the filter

Specified by:
acceptParameters in interface ArchiveFilter

setExclude

public void setExclude(boolean exclude)
Description copied from interface: ArchiveFilter
Indique si le filtre fonctionne en inclusion ou exclusion

Specified by:
setExclude in interface ArchiveFilter