org.webmacro.directive
Class Directive.OptionChoice

java.lang.Object
  extended byorg.webmacro.directive.Directive.ArgDescriptor
      extended byorg.webmacro.directive.Directive.OptionChoice
Direct Known Subclasses:
Directive.ExactlyOneChoice, Directive.SingleOptionChoice
Enclosing class:
Directive

public static class Directive.OptionChoice
extends Directive.ArgDescriptor

The OptionChoice indicates that several optional groups can be accepted in any order. The groupCount parameter is the number of OptionalGroup arguments following. Each group in the choice will be accepted zero or one time, in any order. For example, OptionChoice would allow a directive with the optional groups (Keyword("from"), RValue()) and (Keyword("max"), RValue()) to accept either "from n max m" or "from n" or "max m from n".


Field Summary
 boolean repeating
           
 
Fields inherited from class org.webmacro.directive.Directive.ArgDescriptor
children, id, keyword, nextArg, optional, subordinateArgs, type
 
Constructor Summary
Directive.OptionChoice(int groupCount)
           
 
Methods inherited from class org.webmacro.directive.Directive.ArgDescriptor
setOptional, setSubordinateArgs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

repeating

public boolean repeating
Constructor Detail

Directive.OptionChoice

public Directive.OptionChoice(int groupCount)