org.jcommando
Class Xor

java.lang.Object
  extended byorg.jcommando.Grouping
      extended byorg.jcommando.Xor

public class Xor
extends Grouping

Author:
Brett Wooldridge

Field Summary
 
Fields inherited from class org.jcommando.Grouping
groupings, id, options
 
Constructor Summary
Xor()
           
 
Method Summary
 boolean satisfied(java.util.Set optionSet)
          Returns true if the 'xor' requirement is satisfied.
 
Methods inherited from class org.jcommando.Grouping
addOption, getGroupings, getOptions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Xor

public Xor()
Method Detail

satisfied

public boolean satisfied(java.util.Set optionSet)
Returns true if the 'xor' requirement is satisfied.

Specified by:
satisfied in class Grouping
Parameters:
optionSet - the set of options to check
Returns:
true if this requirement is satisfied, false otherwise
See Also:
Grouping.satisfied(java.util.Set)