If a type defines features or can only assume values from a predefined set, the information is accessible via getFeatureDescriptions
and getAllowedValues
, resp. getDescription
returns a textual description of the type.
Public Types | |
typedef std::vector< FeatureDescription * > | TyVecpFeatureDescriptions |
typedef std::vector< AllowedValue * > | TyVecpAllowedValues |
Public Member Functions | |
TypeDescription () | |
TypeDescription (const TypeDescription &crOther) | |
~TypeDescription () | |
void | commit () |
When this method is called on a MetaDataObject# that must not be reconfigured after the engine is created, isModifiable()# will return false and all subsequent calls to setter methods will return #UIMA_ERR_CONFIG_OBJECT_COMMITED#. | |
TyErrorId | setName (const icu::UnicodeString &name) |
const icu::UnicodeString & | getName () const |
TyErrorId | setSuperTypeName (const icu::UnicodeString &name) |
const icu::UnicodeString & | getSuperTypeName () const |
TyErrorId | setDescription (const icu::UnicodeString &desc) |
const icu::UnicodeString & | getDescription () const |
TyErrorId | addFeatureDescription (FeatureDescription *feature, bool &takesMemoryOwnership) |
NOTE: This object will assume memory ownership of feature , i.e. | |
TyErrorId | addAllowedValue (AllowedValue *allowed, bool &takesMemoryOwnership) |
Adds an AllowedValue object to the list of AllowedValues NOTE: This object will assume memory ownership of AllowedValue , i.e. | |
void | mergeFeatureDescriptions (const TyVecpFeatureDescriptions &descs) |
Adds all feature descriptions in descs to this TypeDescription. | |
void | mergeAllowedValues (const TyVecpAllowedValues &descs) |
const TyVecpFeatureDescriptions & | getFeatureDescriptions () const |
const TyVecpAllowedValues & | getAllowedValues () const |
FeatureDescription * | getFeatureDescription (const icu::UnicodeString &featureName) const |
returns a FeatureDescription with name featureName or NULL, if no such feature can be found. | |
AllowedValue * | getAllowedValue (const icu::UnicodeString &name) const |
void | validate () |
bool | isModifiable () const |
Protected Attributes | |
bool | iv_bIsModifiable |
|
|
|
|
|
|
|
|
|
|
|
When this method is called on a MetaDataObject# that must not be reconfigured after the engine is created, isModifiable()# will return false and all subsequent calls to setter methods will return #UIMA_ERR_CONFIG_OBJECT_COMMITED#. Subclasses of such MetaDataObjects must override this method to ensure that commit is propagated to its members. Note that configuration parameter values can be reconfigured after the engine is created. Hence, the #extractValue# methods of the #AnnotatorContext# can be called anytime. Reimplemented from uima::MetaDataObject. |
|
|
|
|
|
|
|
|
|
|
|
|
|
NOTE: This object will assume memory ownership of it will delete it when destroyed. |
|
Adds an AllowedValue object to the list of AllowedValues NOTE: This object will assume memory ownership of it will delete it when destroyed. |
|
Adds all feature descriptions in descs to this TypeDescription.
If there are two features with the same name and rangetype, only one will be in this TypeDescription. However, if two features have the same name, but different rangetypes, the TypeDescription will contain both. The error will be identified when validating the TextAnalysisEngineSpecifier. |
|
|
|
|
|
|
|
returns a
|
|
|
|
|
|
|
|
|