public class SuffixMatchFilter extends AbstractVirtualFileFilterWithAttributes
Constructor and Description |
---|
SuffixMatchFilter(Collection<String> suffixes)
Create a new SuffixMatchFilter.
|
SuffixMatchFilter(Collection<String> suffixes,
VisitorAttributes attributes)
Create a new SuffixMatchFilter.
|
SuffixMatchFilter(String suffix)
Create a new SuffixMatchFilter, using
VisitorAttributes.DEFAULT |
SuffixMatchFilter(String suffix,
VisitorAttributes attributes)
Create a new SuffixMatchFilter.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accepts(VirtualFile file)
Accept any file that ends with one of the filter suffixes.
|
getAttributes
public SuffixMatchFilter(String suffix)
VisitorAttributes.DEFAULT
suffix
- the suffixIllegalArgumentException
- for a null suffixpublic SuffixMatchFilter(String suffix, VisitorAttributes attributes)
suffix
- the suffixattributes
- the attributes, pass null to use VisitorAttributes.DEFAULT
IllegalArgumentException
- for a null suffixpublic SuffixMatchFilter(Collection<String> suffixes)
suffixes
- - the list of file suffixes to accept.IllegalArgumentException
- for a null suffixespublic SuffixMatchFilter(Collection<String> suffixes, VisitorAttributes attributes)
suffixes
- - the list of file suffixes to accept.attributes
- the attributes, pass null to use VisitorAttributes.DEFAULT
IllegalArgumentException
- for a null suffixespublic boolean accepts(VirtualFile file)
file
- the virtual fileCopyright © 2012 JBoss by Red Hat. All Rights Reserved.