public class Type extends java.lang.Object implements ResourceSelector
| Modifier and Type | Class and Description |
|---|---|
static class |
Type.FileDir
Implements the type attribute.
|
| Modifier and Type | Field and Description |
|---|---|
static Type |
ANY
Static any type selector.
|
static Type |
DIR
Static dir type selector.
|
static Type |
FILE
Static file type selector.
|
| Constructor and Description |
|---|
Type()
Default constructor.
|
Type(Type.FileDir fd)
Convenience constructor.
|
| Modifier and Type | Method and 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 ResourceSelectorr - the Resource to check.