001package org.unix4j.codegen.optset.def;
002
003import java.util.ArrayList;
004import java.util.List;
005
006import org.unix4j.codegen.command.def.CommandDef;
007import org.unix4j.codegen.def.AbstractElementDef;
008import org.unix4j.codegen.def.TypeDef;
009
010public class OptionSetDef extends AbstractElementDef {
011        public <E extends Enum<?>> OptionSetDef(CommandDef command, TypeDef optionType) {
012                this.command = command;
013                this.optionType = optionType;
014        }
015        public final CommandDef command;
016        public final TypeDef optionType;
017        public final List<OptionGroupDef> groups = new ArrayList<OptionGroupDef>();
018        public OptionGroupDef initialGroup;
019        
020        @Override
021        public String toString() {
022                return "\n" + toString("");
023        }
024
025}