java.lang.Cloneable, ResourceSelector, FileSelector, SelectorContainerpublic class MajoritySelector extends BaseSelectorContainer
description, location, project| Constructor | Description |
|---|---|
MajoritySelector() |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
isSelected(java.io.File basedir,
java.lang.String filename,
java.io.File file) |
Returns true (the file is selected) if most of the other selectors
agree.
|
void |
setAllowtie(boolean tiebreaker) |
A attribute to specify what will happen if number
of yes votes is the same as the number of no votes
defaults to true
|
java.lang.String |
toString() |
Convert the Selectors within this container to a string.
|
getCheckedRef, getError, setError, setError, verifySettingsadd, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addExecutable, addFilename, addMajority, addModified, addNone, addNot, addOr, addOwnedBy, addPosixGroup, addPosixPermissions, addPresent, addReadable, addSelector, addSize, addSymlink, addType, addWritable, appendSelector, dieOnCircularReference, getSelectors, hasSelectors, selectorCount, selectorElements, validatecheckAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, setRefid, tooManyAttributesisSelectedequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDescription, getLocation, getProject, log, log, setDescription, setLocation, setProjectpublic java.lang.String toString()
BaseSelectorContainertoString in class BaseSelectorContainerpublic void setAllowtie(boolean tiebreaker)
tiebreaker - the value to give if there is a tiepublic boolean isSelected(java.io.File basedir,
java.lang.String filename,
java.io.File file)
isSelected in interface FileSelectorisSelected in class BaseSelectorContainerbasedir - the base directory the scan is being done fromfilename - is the name of the file to checkfile - is a java.io.File object for the filename that the selector
can use