TypeDescription
and TypePriority
objects for a TextAnalysisEngine
.
Public Types | |
typedef std::vector< TypeDescription * > | TyVecpTypeDescriptions |
typedef std::vector< ImportDescription * > | TyVecpImportDescriptions |
Public Member Functions | |
TypeSystemDescription () | |
~TypeSystemDescription () | |
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#. | |
void | mergeTypeDescriptions (const TyVecpTypeDescriptions &descs) |
Adds all type descriptions in descs to this type system description. | |
TyErrorId | addTypeDescription (TypeDescription *desc, bool &takesMemoryOwnerShip) |
NOTE: This object will assume memory ownership of desc , i.e. | |
const TyVecpTypeDescriptions & | getTypeDescriptions () const |
TypeDescription * | getTypeDescription (const icu::UnicodeString &typeName) const |
const TypeDescription * | getTypeDescriptionConst (const icu::UnicodeString &typeName) const |
bool | hasTypeDescription (const icu::UnicodeString &typeName) const |
void | setXmlFileLocation (const icu::UnicodeString xmlLoc) |
const icu::UnicodeString & | getXmlFileLocation () const |
TyErrorId | addImportDescription (ImportDescription *pDesc, bool &takesMemoryOwnerShip) |
const TyVecpImportDescriptions & | getImportDescriptions () const |
TyErrorId | resolveImports (std::vector< icu::UnicodeString > &alreadyImportedTypeSystemLocations) |
TyErrorId | resolveImport (const icu::UnicodeString &fileLocation, std::vector< icu::UnicodeString > &alreadyImportedTypeSystemLocations, TyVecpTypeDescriptions &result) |
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. |
|
Adds all type descriptions in descs to this type system description.
If there are two type descriptions with the same name and same supertype, their features are merged into one TypeDescription. If two descriptions have the same name, but different supertype names (which is not allowed), the TypeSystemDescription will contain both entries. The error will be identified when validating the TextAnalysisEngineSpecifier
|
|
NOTE: This object will assume memory ownership of it will delete it when destroyed ! |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|