net.firstpartners.rp.plugins
Interface IDataExtractor

All Superinterfaces:
IPlugin
All Known Implementing Classes:
FileTreeDataExtractor, GenericDataExtractor, PdfDataExtractor, SampleExtractor, WebDataExtractor, XmlDataExtractor

public interface IDataExtractor
extends IPlugin

A source of information that we want to extract and add to the knowledgebase (web content , local content etc)

Author:
brownpa

Method Summary
 int canHandle(INewInformation newInfo)
          How well the plugin thinks it can handle a new piece of information
 void convert(INewInformation info)
          Convert the specified information into Tuples/Node and and store it in the specified model
 java.lang.String[] getListExtensions()
          List of the supported extensions
 java.lang.String getOriginalUri()
          The original place where we got this data
 java.lang.String getType()
          The type of the extractor
 
Methods inherited from interface net.firstpartners.rp.plugins.IPlugin
onLoad
 

Method Detail

getType

java.lang.String getType()
The type of the extractor

Returns:
Type of extractor

getListExtensions

java.lang.String[] getListExtensions()
List of the supported extensions

Returns:
Supported extension list

getOriginalUri

java.lang.String getOriginalUri()
The original place where we got this data

Returns:
pointer

canHandle

int canHandle(INewInformation newInfo)
How well the plugin thinks it can handle a new piece of information

Parameters:
newInfo -
Returns:

convert

void convert(INewInformation info)
             throws RpException
Convert the specified information into Tuples/Node and and store it in the specified model

Parameters:
info - The new information to be converted
Throws:
RpException - RpException will be thrown in case the data cann't be converted