org.apache.tools.ant.types.resources.selectors
public class Type extends Object implements ResourceSelector
Since: Ant 1.7
Nested Class Summary | |
---|---|
static class | Type.FileDir
Implements the type attribute. |
Field Summary | |
---|---|
static Type | DIR Static dir type selector. |
static Type | FILE Static file type selector. |
Constructor Summary | |
---|---|
Type()
Default constructor. | |
Type(Type.FileDir fd)
Convenience constructor. |
Method Summary | |
---|---|
boolean | isSelected(Resource r)
Return true if this Resource is selected. |
void | setType(Type.FileDir fd)
Set type; file|dir. |
Parameters: fd the FileDir type.
Parameters: r the Resource to check.
Returns: whether the Resource was selected.
Parameters: fd a FileDir object.