org.apache.tools.ant.types.selectors
public class SelectSelector extends BaseSelectorContainer
Since: 1.5
Constructor Summary | |
---|---|
SelectSelector()
Default constructor. |
Method Summary | |
---|---|
void | appendSelector(FileSelector selector)
Add a new selector into this container.
|
FileSelector[] | getSelectors(Project p)
Returns the set of selectors as an array. |
boolean | hasSelectors()
Indicates whether there are any selectors here. |
boolean | isSelected(File basedir, String filename, File file)
Returns true (the file is selected) only if the if property (if any)
exists, the unless property (if any) doesn't exist, and the
contained selector (if any) selects the file. |
boolean | passesConditions()
Ensures that the selector passes the conditions placed
on it with if and unless . |
int | selectorCount()
Gives the count of the number of selectors in this container |
Enumeration | selectorElements()
Returns an enumerator for accessing the set of selectors. |
void | setIf(String ifProperty)
Sets the if attribute to a property which must exist for the
selector to select any files. |
void | setUnless(String unlessProperty)
Sets the unless attribute to a property which cannot exist for the
selector to select any files. |
String | toString() |
void | verifySettings()
Makes sure that there is only one entry, sets an error message if
not. |
Parameters: selector the new selector to add
Parameters: p the current project
Returns: an array of selectors in this container
Returns: whether any selectors are in this container
Parameters: basedir the base directory the scan is being done from filename the name of the file to check file a java.io.File object for the filename that the selector can use
Returns: whether the file should be selected or not
if
and unless
.Returns: true if conditions are passed
Returns: the number of selectors in this container
Returns: an enumerator that goes through each of the selectors
Parameters: ifProperty the property to check
Parameters: unlessProperty the property to check
Returns: a string describing this object