FileDocCategorySizeDatePackage
Not.javaAPI DocApache Ant 1.701907Wed Dec 13 06:16:22 GMT 2006org.apache.tools.ant.types.resources.selectors

Not

public class Not extends Object implements ResourceSelector
Not ResourceSelector.
since
Ant 1.7

Fields Summary
private ResourceSelector
sel
Constructors Summary
public Not()
Default constructor.

    
public Not(ResourceSelector s)
Convenience constructor.

param
s the ResourceSelector to negate.

        add(s);
    
Methods Summary
public voidadd(ResourceSelector s)
Set the ResourceSelector.

param
s the ResourceSelector to negate.
throws
IllegalStateException if already set.

        if (sel != null) {
            throw new IllegalStateException(
                "The Not ResourceSelector accepts a single nested ResourceSelector");
        }
        sel = s;
    
public booleanisSelected(org.apache.tools.ant.types.Resource r)
Return true if this Resource is selected.

param
r the Resource to check.
return
whether the Resource was selected.

        return !(sel.isSelected(r));