de.enough.polish.ant.requirements
Class OrRelation
java.lang.Object
de.enough.polish.ant.requirements.RequirementContainer
de.enough.polish.ant.requirements.OrRelation
- All Implemented Interfaces:
- DeviceFilter
public class OrRelation
- extends RequirementContainer
Contains a list of requirements of which at least one requirement must be met by the device.
Copyright Enough Software 2004 - 2011
history
15-Feb-2004 - rob creation
- Author:
- Robert Virkus, robert@enough.de
|
Constructor Summary |
OrRelation()
Creates a new empty or relation. |
|
Method Summary |
boolean |
isMet(Device device)
Checks if this filter allows the given device. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OrRelation
public OrRelation()
- Creates a new empty or relation.
isMet
public boolean isMet(Device device)
- Description copied from interface:
DeviceFilter
- Checks if this filter allows the given device.
- Parameters:
device - the device which should be tested against this filter.
- Returns:
- true when this filter is satisfied by the given device.