Inheritance diagram for IDocumentProvider:Public Methods | |
| IDocumentData | getDocumentData (TeslaDocument doc) throws DocumentNotFoundException, DataSourceException |
| List< TeslaDocument > | getAllDocuments () throws DataSourceException |
| void | initialize (DocumentProviderConfiguration config) throws DataSourceException |
| TeslaDocument | getDocument (String documentId) throws DocumentNotFoundException, DataSourceException |
| int | getNumberOfDocuments () |
| DocumentProviderConfiguration | getConfiguration () |
| IDublinCoreMetadata | getMetadata (TeslaDocument document) throws DataSourceException |
| List<TeslaDocument> getAllDocuments | ( | ) | throws DataSourceException |
Returns all documents managed by the provider.
| dataSourceId | will be removed soon |
| DataSourceException |
Implemented in TeslaDocumentProvider, and ZipDocumentProvider.
| DocumentProviderConfiguration getConfiguration | ( | ) |
Returns the configuration of the provider.
Implemented in TeslaDocumentProvider, and ZipDocumentProvider.
| TeslaDocument getDocument | ( | String | documentId | ) | throws DocumentNotFoundException, DataSourceException |
Returns the document with the given id.
| documentId |
| DocumentNotFoundException | |
| DataSourceException |
Implemented in TeslaDocumentProvider, and ZipDocumentProvider.
| IDocumentData getDocumentData | ( | TeslaDocument | doc | ) | throws DocumentNotFoundException, DataSourceException |
Returns content related to a TeslaDocument as IDocumentData.
| doc | The related TeslaDocument. |
Implemented in TeslaDocumentProvider, and ZipDocumentProvider.
| IDublinCoreMetadata getMetadata | ( | TeslaDocument | document | ) | throws DataSourceException |
Implemented in TeslaDocumentProvider, and ZipDocumentProvider.
| int getNumberOfDocuments | ( | ) |
Returns the number of documents managed by this provider. Returns -1, if the number of documents may vary.
Implemented in TeslaDocumentProvider, and ZipDocumentProvider.
| void initialize | ( | DocumentProviderConfiguration | config | ) | throws DataSourceException |
Initializes a document provider. The appropriate implementation of this interface is determined by the information found in a datasource-definition (as can be found in directory configurations/datasources in Tesla's main directory).
| config |
| DataSourceException |
Implemented in TeslaDocumentProvider, ZipDocumentProvider, and BrownCorpusDocumentProvider.