public class OptionValues extends Object
Constructor and Description |
---|
OptionValues()
Creates OptionValues.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
addOptionValue(int containerType,
int containerIndex,
Option option,
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.
|
Set<Integer> |
getOptionContainerIndices()
Returns a sorted set of container names.
|
Object |
getOptionValue(int containerIndex,
Option option)
Returns the option value for an option that is in a specific option container.
|
Object |
getOptionValue(Option option)
Returns the option value for an option.
|
String |
getOptionValueString(int containerIndex,
Option option)
Returns a string representation of the option value for an option that is in a specific option container.
|
String |
toString() |
public OptionValues()
public Object getOptionValue(int containerIndex, Option option) throws OptionException
containerIndex
- the index of the option container.option
- the option objectOptionException
public String getOptionValueString(int containerIndex, Option option) throws OptionException
containerIndex
- the index of the option container.option
- an option objectOptionException
public Object getOptionValue(Option option) throws OptionException
option
- an option objectOptionException
public int getNumberOfOptionValues(int containerIndex)
containerIndex
- The index of the option container.public Set<Integer> getOptionContainerIndices()
protected boolean addOptionValue(int containerType, int containerIndex, Option option, 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 addOptionException
Copyright 2007-2017 Johan Hall, Jens Nilsson and Joakim Nivre.