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 TypeMethodDescriptionvoidadd(FileSelector selector) add an arbitrary selectorvoidaddAnd(AndSelector selector) add an "And" selector entry on the selector listvoidaddContains(ContainsSelector selector) add a contains selector entry on the selector listvoidaddContainsRegexp(ContainsRegexpSelector selector) add a regular expression selector entry on the selector listvoidaddCustom(ExtendSelector selector) add an extended selector entry on the selector listvoidaddDate(DateSelector selector) add a selector date entry on the selector listvoidaddDepend(DependSelector selector) add a depends selector entry on the selector listvoidaddDepth(DepthSelector selector) add a depth selector entry on the selector listvoidaddDifferent(DifferentSelector selector) add the different selectorvoidaddFilename(FilenameSelector selector) add a selector filename entry on the selector listvoidaddMajority(MajoritySelector selector) add a majority selector entry on the selector listvoidaddModified(ModifiedSelector selector) add the modified selectorvoidaddNone(NoneSelector selector) add a "None" selector entry on the selector listvoidaddNot(NotSelector selector) add a "Not" selector entry on the selector listvoidaddOr(OrSelector selector) add an "Or" selector entry on the selector listvoidaddPresent(PresentSelector selector) add a present selector entry on the selector listvoidaddSelector(SelectSelector selector) add a "Select" selector entry on the selector listvoidaddSize(SizeSelector selector) add a selector size entry on the selector listvoidaddType(TypeSelector selector) add the type selectorvoidappendSelector(FileSelector selector) Add a new selector into this container.Returns the set of selectors as an array.booleanIndicates whether there are any selectors here.intGives 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
-