de.enough.polish.ant.requirements
Class OrRelation

java.lang.Object
  extended by de.enough.polish.ant.requirements.RequirementContainer
      extended by 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

Field Summary
 
Fields inherited from class de.enough.polish.ant.requirements.RequirementContainer
requiredIdentifiers
 
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 de.enough.polish.ant.requirements.RequirementContainer
add, addConfiguredAnd, addConfiguredNand, addConfiguredNot, addConfiguredOr, addConfiguredRequirement, addConfiguredXor, addRequirement, getFilters, getRequiredIdentifiers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrRelation

public OrRelation()
Creates a new empty or relation.

Method Detail

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.