Top Description Fields Constructors Methods
org.apache.tools.ant.types.resources.selectors

public Class Not

extends Object
implements ResourceSelector
Class Inheritance
All Implemented Interfaces
org.apache.tools.ant.types.resources.selectors.ResourceSelector
Imports
org.apache.tools.ant.types.Resource

Not ResourceSelector.
Since
Ant 1.7

Field Summary

Modifier and TypeField and Description
private ResourceSelector

Constructor Summary

AccessConstructor and Description
public
Not()

Default constructor.

public
Not(ResourceSelector
the ResourceSelector to negate.
s
)

Convenience constructor.

Method Summary

Modifier and TypeMethod and Description
public void
add(ResourceSelector
the ResourceSelector to negate.
s
)

Set the ResourceSelector.

public boolean

Returns:

whether the Resource was selected.
isSelected
(Resource
the Resource to check.
r
)

Implements org.apache.tools.ant.types.resources.selectors.ResourceSelector.isSelected.

Return true if this Resource is selected.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

selback to summary
private ResourceSelector sel

Constructor Detail

Notback to summary
public Not()

Default constructor.

Notback to summary
public Not(ResourceSelector s)

Convenience constructor.

Parameters
s:ResourceSelector

the ResourceSelector to negate.

Method Detail

addback to summary
public void add(ResourceSelector s)

Set the ResourceSelector.

Parameters
s:ResourceSelector

the ResourceSelector to negate.

Exceptions
IllegalStateException:
if already set.
isSelectedback to summary
public boolean isSelected(Resource r)

Implements org.apache.tools.ant.types.resources.selectors.ResourceSelector.isSelected.

Return true if this Resource is selected.

Parameters
r:Resource

the Resource to check.

Returns:boolean

whether the Resource was selected.