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

Or

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

Fields Summary
Constructors Summary
public Or()
Default constructor.

    
public Or(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.

        for (Iterator i = getSelectors(); i.hasNext();) {
            if (((ResourceSelector) i.next()).isSelected(r)) {
                return true;
            }
        }
        return false;