public abstract class AbstractSelectorContainer extends DataType implements SelectorContainer
| Constructor and Description |
|---|
AbstractSelectorContainer() |
| Modifier and Type | Method and Description |
|---|---|
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 |
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 |
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 |
appendSelector(FileSelector selector)
Add a new selector into this container.
|
FileSelector[] |
getSelectors()
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
|
Enumeration<FileSelector> |
selectorElements()
Returns an enumerator for accessing the set of selectors.
|
String |
toString()
Convert the Selectors within this container to a string.
|
void |
validate()
This validates each contained selector
provided that the selector implements the validate interface.
|
getDescription, isChecked, noChildrenAllowed, setChecked, setDescription, tooManyAttributespublic boolean hasSelectors()
hasSelectors in interface SelectorContainerpublic int selectorCount()
selectorCount in interface SelectorContainerpublic FileSelector[] getSelectors()
getSelectors in interface SelectorContainerpublic Enumeration<FileSelector> selectorElements()
selectorElements in interface SelectorContainerpublic String toString()
public void appendSelector(FileSelector selector)
appendSelector in interface SelectorContainerselector - the new selector to addpublic void validate()
throws Exception
This 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:
Exceptionpublic void addAnd(AndSelector selector)
addAnd in interface SelectorContainerselector - the selector to addpublic void addOr(OrSelector selector)
addOr in interface SelectorContainerselector - the selector to addpublic void addNot(NotSelector selector)
addNot in interface SelectorContainerselector - the selector to addpublic void addNone(NoneSelector selector)
addNone in interface SelectorContainerselector - the selector to addpublic void addMajority(MajoritySelector selector)
addMajority in interface SelectorContainerselector - the selector to addpublic void addDate(DateSelector selector)
addDate in interface SelectorContainerselector - the selector to addpublic void addSize(SizeSelector selector)
addSize in interface SelectorContainerselector - the selector to addpublic void addFilename(FilenameSelector selector)
addFilename in interface SelectorContainerselector - the selector to addpublic void addCustom(ExtendSelector selector)
addCustom in interface SelectorContainerselector - the selector to addpublic void addContains(ContainsSelector selector)
addContains in interface SelectorContainerselector - the selector to addpublic void addPresent(PresentSelector selector)
addPresent in interface SelectorContainerselector - the selector to addpublic void addDepth(DepthSelector selector)
addDepth in interface SelectorContainerselector - the selector to addpublic void addDepend(DependSelector selector)
addDepend in interface SelectorContainerselector - the selector to addpublic void addDifferent(DifferentSelector selector)
addDifferent in interface SelectorContainerselector - the selector to addpublic void addType(TypeSelector selector)
addType in interface SelectorContainerselector - the selector to addpublic void addContainsRegexp(ContainsRegexpSelector selector)
addContainsRegexp in interface SelectorContainerselector - the selector to addpublic void add(FileSelector selector)
add in interface SelectorContainerselector - the selector to addCopyright © 2001–2025. All rights reserved.