org.aitools.programd.test.aiml
Class AlertKeywordChecker

java.lang.Object
  extended by org.aitools.programd.test.aiml.Checker
      extended by org.aitools.programd.test.aiml.ExpectedKeywordChecker
          extended by org.aitools.programd.test.aiml.AlertKeywordChecker

public class AlertKeywordChecker
extends ExpectedKeywordChecker

Tests whether a given input does not contain all of a list of expected keywords.

Author:
Albertas Mickensas, Noel Bush

Field Summary
 
Fields inherited from class org.aitools.programd.test.aiml.Checker
TAG_ALERT_KEYWORDS, TAG_EXPECTED_ANSWER, TAG_EXPECTED_KEYWORDS, TAG_EXPECTED_LENGTH, TAG_EXPECTED_MATCH
 
Constructor Summary
AlertKeywordChecker(java.lang.String list)
          Creates a new AlertKeywordChecker with the given list of keywords.
 
Method Summary
 boolean test(java.lang.String input)
          Tests whether a given input does not contain all of a list of expected keywords.
 
Methods inherited from class org.aitools.programd.test.aiml.ExpectedKeywordChecker
getContent, getTagName
 
Methods inherited from class org.aitools.programd.test.aiml.Checker
create
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlertKeywordChecker

public AlertKeywordChecker(java.lang.String list)
Creates a new AlertKeywordChecker with the given list of keywords.

Parameters:
list - the comma-separated list of keywords
Method Detail

test

public boolean test(java.lang.String input)
Tests whether a given input does not contain all of a list of expected keywords.

Overrides:
test in class ExpectedKeywordChecker
Parameters:
input - the input to test
Returns:
whether the given input passes the Checker's test
See Also:
ExpectedKeywordChecker.test(java.lang.String)