org.apache.tools.ant.types.selectors
public abstract class BaseSelectorContainer extends BaseSelector implements SelectorContainer
Since: 1.5
Constructor Summary | |
---|---|
BaseSelectorContainer()
Default constructor. |
Method Summary | |
---|---|
void | add(FileSelector selector)
add an arbitary selector |
void | addAnd(AndSelector selector)
add an "And" selector entry on the selector list |
void | addContains(ContainsSelector selector)
add a contains selector entry on the selector list |
void | addContainsRegexp(ContainsRegexpSelector selector)
add a regular expression selector entry on the selector list |
void | addCustom(ExtendSelector selector)
add an extended selector entry on the selector list |
void | addDate(DateSelector selector)
add a selector date entry on the selector list |
void | addDepend(DependSelector selector)
add a depends selector entry on the selector list |
void | addDepth(DepthSelector selector)
add a depth selector entry on the selector list |
void | addDifferent(DifferentSelector selector)
adds a different selector to the selector list |
void | addFilename(FilenameSelector selector)
add a selector filename entry on the selector list |
void | addMajority(MajoritySelector selector)
add a majority selector entry on the selector list |
void | addModified(ModifiedSelector selector)
add the modified selector |
void | addNone(NoneSelector selector)
add a "None" selector entry on the selector list |
void | addNot(NotSelector selector)
add a "Not" selector entry on the selector list |
void | addOr(OrSelector selector)
add an "Or" selector entry on the selector list |
void | addPresent(PresentSelector selector)
add a present selector entry on the selector list |
void | addReadable(ReadableSelector r) |
void | addSelector(SelectSelector selector)
add a "Select" selector entry on the selector list |
void | addSize(SizeSelector selector)
add a selector size entry on the selector list |
void | addType(TypeSelector selector)
adds a type selector to the selector list |
void | addWritable(WritableSelector w) |
void | appendSelector(FileSelector selector)
Add a new selector into this container.
|
protected void | dieOnCircularReference(Stack stk, Project p) |
FileSelector[] | getSelectors(Project p)
Returns the set of selectors as an array. |
boolean | hasSelectors()
Indicates whether there are any selectors here. |
abstract boolean | isSelected(File basedir, String filename, File file)
Method that each selector will implement to create their selection
behaviour. |
int | selectorCount()
Gives the count of the number of selectors in this container |
Enumeration | selectorElements()
Returns an enumerator for accessing the set of selectors. |
String | toString()
Convert the Selectors within this container to a string. |
void | validate() This implementation validates the container by calling verifySettings() and then validates each contained selector provided that the selector implements the validate interface. |
Parameters: selector the selector to add
Since: Ant 1.6
Parameters: selector the selector to add
Parameters: selector the selector to add
Parameters: selector the selector to add
Parameters: selector the selector to add
Parameters: selector the selector to add
Parameters: selector the selector to add
Parameters: selector the selector to add
Parameters: selector the selector to add
Parameters: selector the selector to add
Parameters: selector the selector to add
Parameters: selector the selector to add
Since: ant 1.6
Parameters: selector the selector to add
Parameters: selector the selector to add
Parameters: selector the selector to add
Parameters: selector the selector to add
Parameters: selector the selector to add
Parameters: selector the selector to add
Parameters: selector the selector to add
Parameters: selector the new selector to add
Parameters: p the current project
Returns: an array of selectors
Returns: true if there are selectors
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
Returns: the number of selectors
Returns: an enumerator for the selectors
Returns: comma separated list of Selectors contained in this one
This implementation validates the container by calling verifySettings() and then validates each contained selector provided that the selector implements the validate interface.
Ordinarily, this will validate all the elements of a selector container even if the isSelected() method of some elements is never called. This has two effects: