org.apache.tools.ant.types.selectors
Interface SelectorContainer

All Known Implementing Classes:
AbstractFileSet, BaseSelectorContainer, MatchingTask

public interface SelectorContainer

This is the interface for selectors that can contain other selectors.

Since:
1.5
Author:
Bruce Atherton

Method Summary
 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 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 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 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 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 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.
 int selectorCount()
          Gives the count of the number of selectors in this container
 java.util.Enumeration selectorElements()
          Returns an enumerator for accessing the set of selectors.
 

Method Detail

hasSelectors

public boolean hasSelectors()
Indicates whether there are any selectors here.

Returns:
whether any selectors are in this container

selectorCount

public int selectorCount()
Gives the count of the number of selectors in this container

Returns:
the number of selectors in this container

getSelectors

public FileSelector[] getSelectors(Project p)
Returns the set of selectors as an array.

Returns:
an array of selectors in this container

selectorElements

public java.util.Enumeration selectorElements()
Returns an enumerator for accessing the set of selectors.

Returns:
an enumerator that goes through each of the selectors

appendSelector

public void appendSelector(FileSelector selector)
Add a new selector into this container.

Parameters:
selector - the new selector to add
Returns:
the selector that was added

addSelector

public void addSelector(SelectSelector selector)
add a "Select" selector entry on the selector list


addAnd

public void addAnd(AndSelector selector)
add an "And" selector entry on the selector list


addOr

public void addOr(OrSelector selector)
add an "Or" selector entry on the selector list


addNot

public void addNot(NotSelector selector)
add a "Not" selector entry on the selector list


addNone

public void addNone(NoneSelector selector)
add a "None" selector entry on the selector list


addMajority

public void addMajority(MajoritySelector selector)
add a majority selector entry on the selector list


addDate

public void addDate(DateSelector selector)
add a selector date entry on the selector list


addSize

public void addSize(SizeSelector selector)
add a selector size entry on the selector list


addFilename

public void addFilename(FilenameSelector selector)
add a selector filename entry on the selector list


addCustom

public void addCustom(ExtendSelector selector)
add an extended selector entry on the selector list


addContains

public void addContains(ContainsSelector selector)
add a contains selector entry on the selector list


addPresent

public void addPresent(PresentSelector selector)
add a present selector entry on the selector list


addDepth

public void addDepth(DepthSelector selector)
add a depth selector entry on the selector list


addDepend

public void addDepend(DependSelector selector)
add a depends selector entry on the selector list



Copyright © 2000-2003 Apache Software Foundation. All Rights Reserved.