public class OptionValues extends java.lang.Object
| Constructor and Description |
|---|
OptionValues()
Creates OptionValues.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
addOptionValue(int containerType,
int containerIndex,
Option option,
java.lang.Object value)
Adds an option value to an option to one of the internal option container specified by the type.
|
int |
getNumberOfOptionValues(int containerIndex)
Returns the number of option values for a particular option container.
|
java.util.Set<java.lang.Integer> |
getOptionContainerIndices()
Returns a sorted set of container names.
|
java.lang.Object |
getOptionValue(int containerIndex,
Option option)
Returns the option value for an option that is in a specific option container.
|
java.lang.Object |
getOptionValue(Option option)
Returns the option value for an option.
|
java.lang.String |
getOptionValueString(int containerIndex,
Option option)
Returns a string representation of the option value for an option that is in a specific option container.
|
java.lang.String |
toString() |
public OptionValues()
public java.lang.Object getOptionValue(int containerIndex, Option option) throws OptionException
containerIndex - the index of the option container.option - the option objectOptionExceptionpublic java.lang.String getOptionValueString(int containerIndex, Option option) throws OptionException
containerIndex - the index of the option container.option - an option objectOptionExceptionpublic java.lang.Object getOptionValue(Option option) throws OptionException
option - an option objectOptionExceptionpublic int getNumberOfOptionValues(int containerIndex)
containerIndex - The index of the option container.public java.util.Set<java.lang.Integer> getOptionContainerIndices()
protected boolean addOptionValue(int containerType, int containerIndex, Option option, java.lang.Object value) throws OptionException
containerType - the type of the option container.containerIndex - the index of the option container.option - an option to addvalue - an option value to addOptionExceptionpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright 2007-2017 Johan Hall, Jens Nilsson and Joakim Nivre.