de.enough.polish.ant.requirements
Class XorRelation

java.lang.Object
  extended by de.enough.polish.ant.requirements.RequirementContainer
      extended by de.enough.polish.ant.requirements.XorRelation
All Implemented Interfaces:
DeviceFilter

public class XorRelation
extends RequirementContainer

Contains a list of requirements of which only one 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
XorRelation()
          Creates a new xor 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

XorRelation

public XorRelation()
Creates a new xor 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.