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 |
typedef std::vector< icu::UnicodeString > uima::NameValuePair::TyStrValueList |
typedef std::vector< int > uima::NameValuePair::TyIntValueList |
typedef std::vector< float > uima::NameValuePair::TyFloatValueList |
typedef std::vector< bool > uima::NameValuePair::TyBoolValueList |
uima::NameValuePair::NameValuePair | ( | ) |
void uima::NameValuePair::commit | ( | ) | [inline, virtual] |
Does nothing, as reconfiguration of parameter values is possible.
Reimplemented from uima::MetaDataObject.
void uima::NameValuePair::setName | ( | const icu::UnicodeString & | name | ) | [inline] |
const icu::UnicodeString& uima::NameValuePair::getName | ( | ) | const [inline] |
Referenced by uima::SettingsForGroup::addNameValuePair().
void uima::NameValuePair::define | ( | ConfigurationParameter::EnParameterType | type, | |
ConfigurationParameter::EnParameterAggregation | enIsMulti | |||
) |
bool uima::NameValuePair::isMultiValued | ( | ) | const [inline] |
References uima::ConfigurationParameter::MULTIPLE_VALUES.
ConfigurationParameter::EnParameterType uima::NameValuePair::getType | ( | ) | const [inline] |
TyErrorId uima::NameValuePair::setValue | ( | int | value | ) |
TyErrorId uima::NameValuePair::setValue | ( | float | value | ) |
TyErrorId uima::NameValuePair::setValue | ( | bool | value | ) |
TyErrorId uima::NameValuePair::setValue | ( | const icu::UnicodeString & | value | ) |
TyErrorId uima::NameValuePair::addValue | ( | int | value | ) |
TyErrorId uima::NameValuePair::addValue | ( | float | value | ) |
TyErrorId uima::NameValuePair::addValue | ( | bool | value | ) |
TyErrorId uima::NameValuePair::addValue | ( | const icu::UnicodeString & | value | ) |
bool uima::NameValuePair::extractBoolValue | ( | ) | const |
Referenced by uima::AnnotatorContext::extractValue().
std::vector<bool> const& uima::NameValuePair::extractBoolValues | ( | ) | const |
Referenced by uima::AnnotatorContext::extractValue().
int uima::NameValuePair::extractIntValue | ( | ) | const |
Referenced by uima::AnnotatorContext::extractValue().
std::vector<int> const& uima::NameValuePair::extractIntValues | ( | ) | const |
Referenced by uima::AnnotatorContext::extractValue().
float uima::NameValuePair::extractFloatValue | ( | ) | const |
Referenced by uima::AnnotatorContext::extractValue().
std::vector<float> const& uima::NameValuePair::extractFloatValues | ( | ) | const |
Referenced by uima::AnnotatorContext::extractValue().
icu::UnicodeString const& uima::NameValuePair::extractStringValue | ( | ) | const |
Referenced by uima::AnnotatorContext::extractValue().
std::vector<icu::UnicodeString> const& uima::NameValuePair::extractStringValues | ( | ) | const |
Referenced by uima::AnnotatorContext::extractValue().
std::string uima::NameValuePair::extractSingleByteStringValue | ( | ) | const |
Referenced by uima::AnnotatorContext::extractValue().
void uima::NameValuePair::extractSingleByteStringValues | ( | std::vector< std::string * > & | values | ) | const |
Referenced by uima::AnnotatorContext::extractValue().
bool uima::MetaDataObject::isModifiable | ( | ) | const [inline, inherited] |
bool uima::MetaDataObject::iv_bIsModifiable [protected, inherited] |