ResourceSelector
public class Type extends java.lang.Object implements ResourceSelector
Modifier and Type | Class | Description |
---|---|---|
static class |
Type.FileDir |
Implements the type attribute.
|
Modifier and Type | Field | Description |
---|---|---|
static Type |
ANY |
Static any type selector.
|
static Type |
DIR |
Static dir type selector.
|
static Type |
FILE |
Static file type selector.
|
Constructor | Description |
---|---|
Type() |
Default constructor.
|
Type(Type.FileDir fd) |
Convenience constructor.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
isSelected(Resource r) |
Return true if this Resource is selected.
|
void |
setType(Type.FileDir fd) |
Set type; file|dir.
|
public static final Type FILE
public static final Type DIR
public static final Type ANY
public Type()
public Type(Type.FileDir fd)
fd
- the FileDir type.public void setType(Type.FileDir fd)
fd
- a FileDir object.public boolean isSelected(Resource r)
isSelected
in interface ResourceSelector
r
- the Resource to check.