analysis
Class KeywordAnalysisEngine

java.lang.Object
  extended by analysis.KeywordAnalysisEngine
All Implemented Interfaces:
AnalysisEngine

public class KeywordAnalysisEngine
extends java.lang.Object
implements AnalysisEngine

The KeywordAnalysisEngine will Analysis the text extracted from the page for instances of the search terms inputed. For now just returns the number of matches.


Constructor Summary
KeywordAnalysisEngine()
           
 
Method Summary
 AnalysisResult analyzePage(AnalysisResult thisResult)
          Does the analysis of the Page
 java.util.ArrayList<DataType> dataTypesNeeded()
          Returns the DataType this AnalysisEngine needs to run This will ensure the ExtractionEngine that extracts this DataType will be run before the analysis is performed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeywordAnalysisEngine

public KeywordAnalysisEngine()
Method Detail

analyzePage

public AnalysisResult analyzePage(AnalysisResult thisResult)
Does the analysis of the Page

Specified by:
analyzePage in interface AnalysisEngine
Parameters:
thisResult - - The AnalysisResult object containing the Page object to be analyzed, the AnalysisMethod being used (should be this method), and the textData extracted by the TextExtractionEngine.
Returns:
- The AnalysisResult populated with an analysisScore.

dataTypesNeeded

public java.util.ArrayList<DataType> dataTypesNeeded()
Returns the DataType this AnalysisEngine needs to run This will ensure the ExtractionEngine that extracts this DataType will be run before the analysis is performed. Theoretically an AnalysisEngine could require any number of DataTypes.

Specified by:
dataTypesNeeded in interface AnalysisEngine
Returns:
- Returns an ArrayList of DataTypes