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

Class Not

public class Not extends Object implements ResourceSelector

Not ResourceSelector.

Since: Ant 1.7

Constructor Summary
Not()
Default constructor.
Not(ResourceSelector s)
Convenience constructor.
Method Summary
voidadd(ResourceSelector s)
Set the ResourceSelector.
booleanisSelected(Resource r)
Return true if this Resource is selected.

Constructor Detail

Not

public Not()
Default constructor.

Not

public Not(ResourceSelector s)
Convenience constructor.

Parameters: s the ResourceSelector to negate.

Method Detail

add

public void add(ResourceSelector s)
Set the ResourceSelector.

Parameters: s the ResourceSelector to negate.

Throws: IllegalStateException if already set.

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.