org.olat.core.util.vfs.filters
Class VFSItemExcludePrefixFilter

java.lang.Object
  extended by org.olat.core.util.vfs.filters.VFSItemExcludePrefixFilter
All Implemented Interfaces:
VFSItemFilter

public class VFSItemExcludePrefixFilter
extends java.lang.Object
implements VFSItemFilter

Description:

The VFSItemExcludePrefixFilter filters VFSItems that start with the given prefixes.

Note that this is not restricted to VFSLeaves, it does also filter VFSContainers!


Constructor Summary
VFSItemExcludePrefixFilter(java.lang.String[] prefixes)
          Constrtuctor
 
Method Summary
 boolean accept(VFSItem vfsItem)
          Return true if this item is accepted by this filter.
 void addExcludedPrefix(java.lang.String prefix)
           
 void removeSuffix(java.lang.String prefix)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VFSItemExcludePrefixFilter

public VFSItemExcludePrefixFilter(java.lang.String[] prefixes)
Constrtuctor

Parameters:
prefixes -
Method Detail

addExcludedPrefix

public void addExcludedPrefix(java.lang.String prefix)
Parameters:
prefix -

removeSuffix

public void removeSuffix(java.lang.String prefix)
Parameters:
prefix -

accept

public boolean accept(VFSItem vfsItem)
Description copied from interface: VFSItemFilter
Return true if this item is accepted by this filter.

Specified by:
accept in interface VFSItemFilter
Returns:
See Also:
VFSItemFilter.accept(org.olat.core.util.vfs.VFSItem)