public class Majority extends ResourceSelectorContainer implements ResourceSelector
description, location, project
Constructor and Description |
---|
Majority()
Default constructor.
|
Majority(ResourceSelector[] r)
Convenience constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isSelected(Resource r)
Return true if this Resource is selected.
|
void |
setAllowtie(boolean b)
Set whether ties are allowed.
|
add, dieOnCircularReference, getSelectors, hasSelectors, selectorCount
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, setRefid, tooManyAttributes, toString
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
public Majority()
public Majority(ResourceSelector[] r)
r
- the ResourceSelector[] to add.public void setAllowtie(boolean b)
b
- whether a tie is a pass.public boolean isSelected(Resource r)
isSelected
in interface ResourceSelector
r
- the Resource to check.