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

uima::FSIndexRepository Class Reference

List of all members.

Detailed Description

Repository of indexes over feature structures.

Use this interface to access previously defined indexes.


Public Member Functions

FSIndex getIndex (icu::UnicodeString const &crLabel) const
 Retrieve an index according to a label.
FSIndex getIndex (icu::UnicodeString const &crLabel, Type const &crType) const
 Retrieve an index according to a label and a type.
int getIndexSize (Type const &crType) const
 Return the number of feature structures of type in the repository.
std::vector< icu::UnicodeString > getAllIndexIDs () const
 Get all index names available in the system.
Type getTypeForIndex (icu::UnicodeString const &) const
 get the most general type where the index is defined.
bool isValidIndexID (icu::UnicodeString const &crID) const
 check if there exists an index with ID crID.
bool isValidIndexID (icu::UnicodeString const &crID, Type const &crType) const
 check if there exists an index with ID id for type crType.
void addFS (FeatureStructure const &crFS)
 add the feature structure crFS to all indexes appropriate for its type.
void removeFS (uima::FeatureStructure const &crFS)
 remove the feature structure crFS from all indexes appropriate for its type.

Protected Member Functions

virtual uima::lowlevel::IndexRepository & getLowlevelIndexRepository ()=0
virtual uima::lowlevel::IndexRepository
const & 
getLowlevelIndexRepository () const =0
 FSIndexRepository ()
virtual ~FSIndexRepository ()


Constructor & Destructor Documentation

uima::FSIndexRepository::FSIndexRepository  )  [protected]
 

virtual uima::FSIndexRepository::~FSIndexRepository  )  [protected, virtual]
 


Member Function Documentation

virtual uima::lowlevel::IndexRepository& uima::FSIndexRepository::getLowlevelIndexRepository  )  [protected, pure virtual]
 

virtual uima::lowlevel::IndexRepository const& uima::FSIndexRepository::getLowlevelIndexRepository  )  const [protected, pure virtual]
 

FSIndex uima::FSIndexRepository::getIndex icu::UnicodeString const &  crLabel  )  const
 

Retrieve an index according to a label.

Parameters:
crLabel The name of the index.
Returns:
The index with the name label, or null if no such index is defined.

FSIndex uima::FSIndexRepository::getIndex icu::UnicodeString const &  crLabel,
Type const &  crType
const
 

Retrieve an index according to a label and a type.

The type is used to narrow down the index of a more general type to a more specific one.

Parameters:
crLabel The name of the index.
crType A subtype of the type of the index.
Returns:
The specified, or null if an index with that name doesn't exist, or it exists but type is not a subtype of the index's type.
Exceptions:
WrongFSTypeForIndexException 

int uima::FSIndexRepository::getIndexSize Type const &  crType  )  const
 

Return the number of feature structures of type in the repository.

Parameters:
crType The type of feature structures we're interested in.
Returns:
The number of such feature structures in the index repository.

std::vector<icu::UnicodeString> uima::FSIndexRepository::getAllIndexIDs  )  const
 

Get all index names available in the system.

Type uima::FSIndexRepository::getTypeForIndex icu::UnicodeString const &   )  const
 

get the most general type where the index is defined.

bool uima::FSIndexRepository::isValidIndexID icu::UnicodeString const &  crID  )  const
 

check if there exists an index with ID crID.

bool uima::FSIndexRepository::isValidIndexID icu::UnicodeString const &  crID,
Type const &  crType
const
 

check if there exists an index with ID id for type crType.

void uima::FSIndexRepository::addFS FeatureStructure const &  crFS  ) 
 

add the feature structure crFS to all indexes appropriate for its type.

Exceptions:
InvalidFSObjectException 

void uima::FSIndexRepository::removeFS uima::FeatureStructure const &  crFS  ) 
 

remove the feature structure crFS from all indexes appropriate for its type.

Exceptions:
InvalidFSObjectException 


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