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 objectOptionException
public java.lang.String getOptionValueString(int containerIndex, Option option) throws OptionException
containerIndex
- the index of the option container.option
- an option objectOptionException
public java.lang.Object getOptionValue(Option option) throws OptionException
option
- an option objectOptionException
public 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 addOptionException
public java.lang.String toString()
toString
in class java.lang.Object
Copyright 2007-2017 Johan Hall, Jens Nilsson and Joakim Nivre.