Package org.jboss.vfs.util
Class AbstractPatternVirtualFileFilter
java.lang.Object
org.jboss.vfs.util.AbstractPatternVirtualFileFilter
- All Implemented Interfaces:
VirtualFileFilter
- Direct Known Subclasses:
IncludePatternVirtualFileFilter
Regexp patter filter.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
accepts
(VirtualFile file) Match the virtual fileprotected abstract boolean
doMatch()
Should we match the pattern.protected abstract String
getMatchString
(VirtualFile file) Extract match string from file.
-
Field Details
-
pattern
-
-
Constructor Details
-
AbstractPatternVirtualFileFilter
-
-
Method Details
-
getMatchString
Extract match string from file.- Parameters:
file
- the file- Returns:
- extracted match string
-
doMatch
protected abstract boolean doMatch()Should we match the pattern.- Returns:
- the match flag
-
accepts
Description copied from interface:VirtualFileFilter
Match the virtual file- Specified by:
accepts
in interfaceVirtualFileFilter
- Parameters:
file
- the virtual file- Returns:
- true when it matches
-