A message option. More...
Public Member Functions | |
| MgpOption (int key, String value) | |
| Construct a new option. | |
| MgpOption (int key, int value) | |
| Construct a new option. | |
| MgpOption (String key, String value) | |
| Construct a new option. | |
| int | getKey () |
| Returns the key for the option. | |
| String | getValue () |
| Returns the value for the option. | |
| int | getIntValue () |
| Returns the value for the option, interpreted as an integer. | |
Private Attributes | |
| int | key = -1 |
| String | value = null |
A message option.
The keys are the MGP_OPTION_* integers in Mgp.
The value is always stored as a string.
| com::nmt::mgp::MgpOption::MgpOption | ( | int | key, | |
| String | value | |||
| ) | [inline] |
Construct a new option.
| NullPointerException | if value is null. |
| com::nmt::mgp::MgpOption::MgpOption | ( | int | key, | |
| int | value | |||
| ) | [inline] |
Construct a new option.
| com::nmt::mgp::MgpOption::MgpOption | ( | String | key, | |
| String | value | |||
| ) | [inline] |
Construct a new option.
| NullPointerException | if value is null. |
| int com::nmt::mgp::MgpOption::getIntValue | ( | ) | [inline] |
Returns the value for the option, interpreted as an integer.
References value.
| int com::nmt::mgp::MgpOption::getKey | ( | ) | [inline] |
Returns the key for the option.
References key.
Referenced by com::nmt::mgp::OptionHolder::delete(), com::nmt::mgp::OptionHolder::getOption(), com::nmt::mgp::OptionHolder::getValue(), com::nmt::mgp::OptionHolder::getValues(), and com::nmt::mgp::OptionHolder::write().
| String com::nmt::mgp::MgpOption::getValue | ( | ) | [inline] |
Returns the value for the option.
References value.
Referenced by com::nmt::mgp::OptionHolder::getValue(), com::nmt::mgp::OptionHolder::getValues(), and com::nmt::mgp::OptionHolder::write().
int com::nmt::mgp::MgpOption::key = -1 [private] |
Referenced by getKey().
String com::nmt::mgp::MgpOption::value = null [private] |
Referenced by getIntValue(), and getValue().
1.7.1