The parameter name is determined bygetName()
. Has severalextractValue
methods to extract the value according to its type. These methods will returnUIMA_ERR_CONFIG_INVALID_EXRACTOR_FOR_TYPE
if the value type does not match the type in theextractValue
method.
Public Types | |
typedef std::vector< icu::UnicodeString > | TyStrValueList |
typedef std::vector< int > | TyIntValueList |
typedef std::vector< float > | TyFloatValueList |
typedef std::vector< bool > | TyBoolValueList |
Public Member Functions | |
NameValuePair () | |
void | commit () |
Does nothing, as reconfiguration of parameter values is possible. | |
void | setName (const icu::UnicodeString &name) |
const icu::UnicodeString & | getName () const |
void | define (ConfigurationParameter::EnParameterType type, ConfigurationParameter::EnParameterAggregation enIsMulti) |
bool | isMultiValued () const |
ConfigurationParameter::EnParameterType | getType () const |
TyErrorId | setValue (int value) |
TyErrorId | setValue (float value) |
TyErrorId | setValue (bool value) |
TyErrorId | setValue (const icu::UnicodeString &value) |
TyErrorId | addValue (int value) |
TyErrorId | addValue (float value) |
TyErrorId | addValue (bool value) |
TyErrorId | addValue (const icu::UnicodeString &value) |
bool | extractBoolValue () const |
std::vector< bool > const & | extractBoolValues () const |
int | extractIntValue () const |
std::vector< int > const & | extractIntValues () const |
float | extractFloatValue () const |
std::vector< float > const & | extractFloatValues () const |
icu::UnicodeString const & | extractStringValue () const |
std::vector< icu::UnicodeString > const & | extractStringValues () const |
std::string | extractSingleByteStringValue () const |
void | extractSingleByteStringValues (std::vector< std::string * > &values) const |
bool | isModifiable () const |
Protected Attributes | |
bool | iv_bIsModifiable |
|
|
|
|
|
|
|
|
|
|
|
Does nothing, as reconfiguration of parameter values is possible.
Reimplemented from uima::MetaDataObject. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|