public class ExtensibleFilter extends Object implements VirtualFileFilter
Constructor and Description |
---|
ExtensibleFilter()
Use the default values for suffixes, prefixes, and matches
|
ExtensibleFilter(String[] matches,
String[] prefixes,
String[] suffixes)
Create using a custom set of matches, prefixes, and suffixes.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accepts(VirtualFile file)
If the filename matches any string in the prefix, suffix, or matches array, return false.
|
void |
addPrefix(String prefix) |
void |
addPrefixes(String[] prefixes) |
void |
addSuffix(String suffix) |
void |
addSuffixes(String[] suffixes) |
void |
delPrefix(String prefix) |
void |
delPrefixes(String[] prefixes) |
void |
delSuffix(String suffix) |
void |
delSuffixes(String[] suffixes) |
String[] |
getMatches() |
String[] |
getPrefixes() |
String[] |
getSuffixes() |
void |
setMatches(String[] matches) |
void |
setPrefixes(String[] prefixes) |
void |
setSuffixes(String[] suffixes) |
public ExtensibleFilter()
public ExtensibleFilter(String[] matches, String[] prefixes, String[] suffixes)
matches
- the matchesprefixes
- the prefixessuffixes
- the suffixespublic void addPrefix(String prefix)
public void addPrefixes(String[] prefixes)
public void delPrefix(String prefix)
public void delPrefixes(String[] prefixes)
public void addSuffix(String suffix)
public void addSuffixes(String[] suffixes)
public void delSuffix(String suffix)
public void delSuffixes(String[] suffixes)
public String[] getSuffixes()
public void setSuffixes(String[] suffixes)
public String[] getPrefixes()
public void setPrefixes(String[] prefixes)
public String[] getMatches()
public void setMatches(String[] matches)
public boolean accepts(VirtualFile file)
accepts
in interface VirtualFileFilter
file
- The file to be testedfalse
if the filename matches any of the prefixes, suffixes, or matches.Copyright © 2012 JBoss by Red Hat. All Rights Reserved.