public class Filter
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
Filter.PatternList |
| Constructor and Description |
|---|
Filter() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.lang.String pattern)
Add a pattern to the list of patterns
|
void |
clear()
Remove all installed patterns from the list of files to filename
|
java.util.List<java.lang.String> |
getItems()
Get the complete list of items that would be matched by this matcher
|
boolean |
isEmpty() |
boolean |
match(java.io.File file)
Should the file be ignored or not?
|
boolean |
match(java.lang.String name)
Should the file be ignored or not?
|
void |
setItems(java.util.List<java.lang.String> item)
Specify a new filter to use
|
public boolean isEmpty()
public java.util.List<java.lang.String> getItems()
public void setItems(java.util.List<java.lang.String> item)
item - the new filterpublic void add(java.lang.String pattern)
pattern - the pattern to filenamepublic void clear()
public boolean match(java.io.File file)
file - the file to checkpublic boolean match(java.lang.String name)
name - the name of the file to check