org.apache.tools.ant.types.resources.selectors

Class Majority

public class Majority extends ResourceSelectorContainer implements ResourceSelector

Majority ResourceSelector.

Since: Ant 1.7

Constructor Summary
Majority()
Default constructor.
Majority(ResourceSelector[] r)
Convenience constructor.
Method Summary
booleanisSelected(Resource r)
Return true if this Resource is selected.
voidsetAllowtie(boolean b)
Set whether ties are allowed.

Constructor Detail

Majority

public Majority()
Default constructor.

Majority

public Majority(ResourceSelector[] r)
Convenience constructor.

Parameters: r the ResourceSelector[] to add.

Method Detail

isSelected

public boolean isSelected(Resource r)
Return true if this Resource is selected.

Parameters: r the Resource to check.

Returns: whether the Resource was selected.

setAllowtie

public void setAllowtie(boolean b)
Set whether ties are allowed.

Parameters: b whether a tie is a pass.