Class Type
java.lang.Object
org.apache.tools.ant.types.resources.selectors.Type
- All Implemented Interfaces:
ResourceSelector
public class Type extends java.lang.Object implements ResourceSelector
Type file/dir ResourceSelector.
- Since:
- Ant 1.7
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classType.FileDirImplements the type attribute. -
Field Summary
-
Constructor Summary
Constructors Constructor Description Type()Default constructor.Type(Type.FileDir fd)Convenience constructor. -
Method Summary
Modifier and Type Method Description booleanisSelected(Resource r)Return true if this Resource is selected.voidsetType(Type.FileDir fd)Set type; file|dir.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
FILE
Static file type selector. -
DIR
Static dir type selector. -
ANY
Static any type selector. Since Ant 1.8.
-
-
Constructor Details
-
Type
public Type()Default constructor. -
Type
Convenience constructor.- Parameters:
fd- the FileDir type.
-
-
Method Details
-
setType
Set type; file|dir.- Parameters:
fd- a FileDir object.
-
isSelected
Return true if this Resource is selected.- Specified by:
isSelectedin interfaceResourceSelector- Parameters:
r- the Resource to check.- Returns:
- whether the Resource was selected.
-