Class Type
java.lang.Object
org.apache.tools.ant.types.resources.selectors.Type
- All Implemented Interfaces:
- ResourceSelector
Type file/dir ResourceSelector.
- Since:
- Ant 1.7
- 
Nested Class SummaryNested Classes
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanReturn true if this Resource is selected.voidsetType(Type.FileDir fd) Set type; file|dir.
- 
Field Details- 
FILEStatic file type selector.
- 
DIRStatic dir type selector.
- 
ANYStatic any type selector. Since Ant 1.8.
 
- 
- 
Constructor Details- 
Typepublic Type()Default constructor.
- 
TypeConvenience constructor.- Parameters:
- fd- the FileDir type.
 
 
- 
- 
Method Details- 
setTypeSet type; file|dir.- Parameters:
- fd- a FileDir object.
 
- 
isSelectedReturn true if this Resource is selected.- Specified by:
- isSelectedin interface- ResourceSelector
- Parameters:
- r- the Resource to check.
- Returns:
- whether the Resource was selected.
 
 
-