java.lang.Cloneable
, ResourceSelector
public class Majority extends ResourceSelectorContainer implements ResourceSelector
description, location, project
Constructor | Description |
---|---|
Majority() |
Default constructor.
|
Majority(ResourceSelector... r) |
Convenience constructor.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
isSelected(Resource r) |
Return true if this Resource is selected.
|
void |
setAllowtie(boolean b) |
Set whether ties are allowed.
|
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, setRefid, tooManyAttributes, toString
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
add, dieOnCircularReference, getCheckedRef, getResourceSelectors, getSelectors, hasSelectors, selectorCount
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.