org.olat.core.util.vfs.filters
Class VFSItemSuffixFilter
java.lang.Object
org.olat.core.util.vfs.filters.VFSItemSuffixFilter
- All Implemented Interfaces:
- VFSItemFilter
public class VFSItemSuffixFilter
- extends java.lang.Object
- implements VFSItemFilter
Description:
The VFSItemSuffixFilter filters VFSItems that end in the given suffixes.
Note that this is not restricted to VFSLeaves, it does also filter
VFSContainers!
|
Method Summary |
boolean |
accept(VFSItem vfsItem)
Return true if this item is accepted by this filter. |
void |
addSuffix(java.lang.String suffix)
|
void |
removeSuffix(java.lang.String suffix)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VFSItemSuffixFilter
public VFSItemSuffixFilter(java.lang.String[] suffixes)
- Constructor
- Parameters:
suffixes - Array of at suffixes to be added to this filter
addSuffix
public void addSuffix(java.lang.String suffix)
- Parameters:
suffix -
removeSuffix
public void removeSuffix(java.lang.String suffix)
- Parameters:
suffix -
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)