Interface SelectorContainer
- All Known Implementing Classes:
AbstractFileSet
,AbstractSelectorContainer
,AndSelector
,ArchiveFileSet
,BaseSelectorContainer
,BCFileSet
,Cab
,Checksum
,ClassfileSet
,Copydir
,Delete
,Depend
,DependSet
,DirSet
,Ear
,EjbJar
,Files
,FileSet
,FixCRLF
,Image
,ImageIOTask
,IsFileSelected
,Jar
,Javac
,Javadoc.TagArgument
,JlinkTask
,JspC
,LibFileSet
,MajoritySelector
,MatchingTask
,MultiRootFileSet
,Native2Ascii
,NetRexxC
,NoneSelector
,NotSelector
,OrSelector
,RenameExtensions
,Replace
,Rmic
,SelectSelector
,Sync.SyncTarget
,Tar
,Tar.TarFileSet
,TarFileSet
,Translate
,War
,WLJspc
,XSLTProcess
,Zip
,ZipFileSet
public interface SelectorContainer
This is the interface for selectors that can contain other selectors.
- Since:
- 1.5
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(FileSelector selector) add an arbitrary selectorvoid
addAnd
(AndSelector selector) add an "And" selector entry on the selector listvoid
addContains
(ContainsSelector selector) add a contains selector entry on the selector listvoid
addContainsRegexp
(ContainsRegexpSelector selector) add a regular expression selector entry on the selector listvoid
addCustom
(ExtendSelector selector) add an extended selector entry on the selector listvoid
addDate
(DateSelector selector) add a selector date entry on the selector listvoid
addDepend
(DependSelector selector) add a depends selector entry on the selector listvoid
addDepth
(DepthSelector selector) add a depth selector entry on the selector listvoid
addDifferent
(DifferentSelector selector) add the different selectorvoid
addFilename
(FilenameSelector selector) add a selector filename entry on the selector listvoid
addMajority
(MajoritySelector selector) add a majority selector entry on the selector listvoid
addModified
(ModifiedSelector selector) add the modified selectorvoid
addNone
(NoneSelector selector) add a "None" selector entry on the selector listvoid
addNot
(NotSelector selector) add a "Not" selector entry on the selector listvoid
addOr
(OrSelector selector) add an "Or" selector entry on the selector listvoid
addPresent
(PresentSelector selector) add a present selector entry on the selector listvoid
addSelector
(SelectSelector selector) add a "Select" selector entry on the selector listvoid
addSize
(SizeSelector selector) add a selector size entry on the selector listvoid
addType
(TypeSelector selector) add the type selectorvoid
appendSelector
(FileSelector selector) Add a new selector into this container.Returns the set of selectors as an array.boolean
Indicates whether there are any selectors here.int
Gives the count of the number of selectors in this containerReturns an enumerator for accessing the set of selectors.
-
Method Details
-
hasSelectors
boolean hasSelectors()Indicates whether there are any selectors here.- Returns:
- whether any selectors are in this container
-
selectorCount
int selectorCount()Gives the count of the number of selectors in this container- Returns:
- the number of selectors in this container
-
getSelectors
Returns the set of selectors as an array.- Parameters:
p
- the current project- Returns:
- an array of selectors in this container
-
selectorElements
Enumeration<FileSelector> selectorElements()Returns an enumerator for accessing the set of selectors.- Returns:
- an enumerator that goes through each of the selectors
-
appendSelector
Add a new selector into this container.- Parameters:
selector
- the new selector to add
-
addSelector
add a "Select" selector entry on the selector list- Parameters:
selector
- the selector to add
-
addAnd
add an "And" selector entry on the selector list- Parameters:
selector
- the selector to add
-
addOr
add an "Or" selector entry on the selector list- Parameters:
selector
- the selector to add
-
addNot
add a "Not" selector entry on the selector list- Parameters:
selector
- the selector to add
-
addNone
add a "None" selector entry on the selector list- Parameters:
selector
- the selector to add
-
addMajority
add a majority selector entry on the selector list- Parameters:
selector
- the selector to add
-
addDate
add a selector date entry on the selector list- Parameters:
selector
- the selector to add
-
addSize
add a selector size entry on the selector list- Parameters:
selector
- the selector to add
-
addFilename
add a selector filename entry on the selector list- Parameters:
selector
- the selector to add
-
addCustom
add an extended selector entry on the selector list- Parameters:
selector
- the selector to add
-
addContains
add a contains selector entry on the selector list- Parameters:
selector
- the selector to add
-
addPresent
add a present selector entry on the selector list- Parameters:
selector
- the selector to add
-
addDepth
add a depth selector entry on the selector list- Parameters:
selector
- the selector to add
-
addDepend
add a depends selector entry on the selector list- Parameters:
selector
- the selector to add
-
addContainsRegexp
add a regular expression selector entry on the selector list- Parameters:
selector
- the selector to add
-
addType
add the type selector- Parameters:
selector
- the selector to add- Since:
- ant 1.6
-
addDifferent
add the different selector- Parameters:
selector
- the selector to add- Since:
- ant 1.6
-
addModified
add the modified selector- Parameters:
selector
- the selector to add- Since:
- ant 1.6
-
add
add an arbitrary selector- Parameters:
selector
- the selector to add- Since:
- Ant 1.6
-