|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jasen.core.StandardScanResult
Captures the information relating to the results of a scan. Namely the probability that the message is a spam email
Constructor Summary | |
StandardScanResult()
|
Method Summary | |
boolean |
completed()
Returns false if the scan could not be completed due to an error |
String |
getExtractedText()
Gets the plain text extracted from the HTML after it was parsed |
double |
getProbability()
Returns the probability that the scanned message was a spam message |
String[][] |
getTestResults()
Gets the results of each test NOTE: This is a convenience method only intended to help debugging etc |
boolean |
isParseError()
Tells us if there was an error whilst parsing the message |
void |
setExtractedText(String extractedText)
Sets the plain text extracted from the HTML after it was parsed |
void |
setParseError(boolean parseError)
Flags the message as having a parse error during parsing |
void |
setProbability(double probability)
Sets the probability value to return from this result |
void |
setTestResults(String[][] testResults)
Sets the list of test results for debugging |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StandardScanResult()
Method Detail |
public double getProbability()
JasenScanResult
getProbability
in interface JasenScanResult
public void setProbability(double probability)
probability
- A value between 0.0 and 1.0public String getExtractedText()
public void setExtractedText(String extractedText)
extractedText
- The plain text as a Stringpublic String[][] getTestResults()
JasenScanResult
getTestResults
in interface JasenScanResult
Jasen.RESULT_INDEX_PROBABILITY
,
Jasen.RESULT_INDEX_TIME
,
Jasen.RESULT_INDEX_NAME
,
Jasen.RESULT_INDEX_DISPLAY
public void setTestResults(String[][] testResults)
testResults
- The testResults to set.public boolean isParseError()
public void setParseError(boolean parseError)
parseError
- true if the message could not be parsed, false otherwisepublic boolean completed()
JasenScanResult
completed
in interface JasenScanResult
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |