Overview   Class List   Class Hierarchy   Class Members   Functions & Constants   Defines   Header Files  

uima::TypeNameSpaceImport Class Reference

List of all members.

Detailed Description

This class is usefull to bundle several TypeNameSpace objects into a lookup sequence that can be used to lookup unqualified type names.

The TypeNameSpaceImport object will try to find an unqualified type name in each TypeNameSpace objects that has been added to it. The lookup will be done in the sequence in which the TypeNameSpace objects have been added.


Public Member Functions

 TypeNameSpaceImport (uima::TypeSystem const &)
 Construct a TypeNameSpaceImport object from an type system.
void addNameSpace (TypeNameSpace const &crNamespace)
 Add a TypeNameSpace object to this TypeNameSpaceImport object.
bool getType (icu::UnicodeString const &crRelativeTypeName, Type &rResult) const
 try to get the type with the specified relative name.
void getAllTypes (std::vector< Type > &rResult) const
 Return a container with type objects for all types of all namespace that have been added to this TypeNameSpaceImport object.
TypeSystem const & getTypeSystem () const
 Return the typesystem this TypeNameSpaceImport object lives in.


Constructor & Destructor Documentation

uima::TypeNameSpaceImport::TypeNameSpaceImport uima::TypeSystem const &   ) 
 

Construct a TypeNameSpaceImport object from an type system.


Member Function Documentation

void uima::TypeNameSpaceImport::addNameSpace TypeNameSpace const &  crNamespace  ) 
 

Add a TypeNameSpace object to this TypeNameSpaceImport object.

Note: The order of the addNameSpace() calls will be relevant for a later lookup using getType()

bool uima::TypeNameSpaceImport::getType icu::UnicodeString const &  crRelativeTypeName,
Type rResult
const
 

try to get the type with the specified relative name.

If there is a name conflict, false is returned, true otherwise.

Parameters:
crRelativeTypeName input: not fully specified type name
rResult output parameter

void uima::TypeNameSpaceImport::getAllTypes std::vector< Type > &  rResult  )  const
 

Return a container with type objects for all types of all namespace that have been added to this TypeNameSpaceImport object.

TypeSystem const& uima::TypeNameSpaceImport::getTypeSystem  )  const
 

Return the typesystem this TypeNameSpaceImport object lives in.


The documentation for this class was generated from the following file:
Generated on Mon Oct 1 16:04:14 2012 for UIMACPP API by  doxygen 1.3.9.1