FileDocCategorySizeDatePackage
None.javaAPI DocApache Ant 1.701715Wed Dec 13 06:16:20 GMT 2006org.apache.tools.ant.types.resources.selectors

None

public class None extends ResourceSelectorContainer implements ResourceSelector
None ResourceSelector.
since
Ant 1.7

Fields Summary
Constructors Summary
public None()
Default constructor.

    
public None(ResourceSelector[] r)
Convenience constructor.

param
r the ResourceSelector[] to add.

        super(r);
    
Methods Summary
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.

        boolean none = true;
        for (Iterator i = getSelectors(); none && i.hasNext();) {
            none = !((ResourceSelector) i.next()).isSelected(r);
        }
        return none;