public class ResourceFilter extends Object
Models an eclipse resource filter.
Modifier and Type | Method and Description |
---|---|
ResourceFilter |
caseSensitive()
The match will be caseSensitive.
|
static ResourceFilter |
exclude()
Creates a ResourceFilter which excludes the specified resources.
|
ResourceFilter |
files()
Sets this resource filter to include files.
|
ResourceFilter |
filesAndFolders()
Sets this resource filter to include files and folders.
|
ResourceFilter |
folders()
Sets this resource filter to include folders.
|
int |
hashCode() |
static ResourceFilter |
include()
Creates a ResourceFilter which includes the specified resources.
|
ResourceFilter |
location(String value)
Matches on
location , as opposed to name and projectRelativePath . |
ResourceFilter |
name(String value)
Matches on
name , as opposed to location and projectRelativePath . |
ResourceFilter |
projectRelativePath(String value)
Matches on
projectRelativePath , as opposed to name and location . |
ResourceFilter |
recursive()
The match will be recursive from the root directory.
|
ResourceFilter |
regex()
The match is a regex.
|
public static ResourceFilter include()
Creates a ResourceFilter which includes the specified resources.
public static ResourceFilter exclude()
Creates a ResourceFilter which excludes the specified resources.
public ResourceFilter files()
Sets this resource filter to include files.
public ResourceFilter folders()
Sets this resource filter to include folders.
public ResourceFilter filesAndFolders()
Sets this resource filter to include files and folders.
public ResourceFilter name(String value)
Matches on name
, as opposed to location
and projectRelativePath
.
public ResourceFilter location(String value)
Matches on location
, as opposed to name
and projectRelativePath
.
public ResourceFilter projectRelativePath(String value)
Matches on projectRelativePath
, as opposed to name
and location
.
public ResourceFilter caseSensitive()
The match will be caseSensitive.
public ResourceFilter regex()
The match is a regex.
public ResourceFilter recursive()
The match will be recursive from the root directory.