public class OptionGroup extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
NOGROUPNAME |
static int |
toStringSetting |
static int |
WITHGROUPNAME |
Constructor and Description |
---|
OptionGroup(java.lang.String name)
Creates an option group with an option group name.
|
Modifier and Type | Method and Description |
---|---|
void |
addOption(Option option)
Adds an option to the option group.
|
java.lang.String |
getName()
Returns the name of the option group
|
Option |
getOption(java.lang.String optionname)
Returns the option according to the option name.
|
java.util.Collection<Option> |
getOptionList()
Returns all options for this option group.
|
java.lang.String |
toString() |
public static int toStringSetting
public static final int WITHGROUPNAME
public static final int NOGROUPNAME
public OptionGroup(java.lang.String name)
name
- The name of the option grouppublic java.lang.String getName()
public void addOption(Option option) throws OptionException
option
- an optionOptionException
public Option getOption(java.lang.String optionname)
optionname
- an option namepublic java.util.Collection<Option> getOptionList()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright 2007-2017 Johan Hall, Jens Nilsson and Joakim Nivre.