org.alicebot.server.core.processor
Class AIMLProcessor

java.lang.Object
  extended by org.alicebot.server.core.processor.Processor
      extended by org.alicebot.server.core.processor.AIMLProcessor
Direct Known Subclasses:
BotProcessor, ConditionProcessor, DateProcessor, FormalProcessor, GenderProcessor, GetProcessor, GossipProcessor, IDProcessor, IndexedPredicateProcessor, JavaScriptProcessor, LearnProcessor, LowerCaseProcessor, Person2Processor, PersonProcessor, RandomProcessor, SentenceProcessor, SetProcessor, SizeProcessor, SRAIProcessor, SRProcessor, SystemProcessor, ThinkProcessor, UpperCaseProcessor, VersionProcessor

public abstract class AIMLProcessor
extends Processor

An AIMLProcessor is responsible for processing a particular AIML element.

Version:
4.1.3
Author:
Jon Baer, Thomas Ringate, Pedro Colla, Noel Bush

Field Summary
 
Fields inherited from class org.alicebot.server.core.processor.Processor
EMPTY_STRING, ENABLED, ID, label, NAME, NAME_EQUALS, VALUE, VALUE_EQUALS
 
Constructor Summary
AIMLProcessor()
           
 
Method Summary
 java.lang.String process(int level, XMLNode tag, GenericParser parser)
          Processes an element.
abstract  java.lang.String process(int level, XMLNode tag, TemplateParser parser)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AIMLProcessor

public AIMLProcessor()
Method Detail

process

public java.lang.String process(int level,
                                XMLNode tag,
                                GenericParser parser)
                         throws ProcessorException
Description copied from class: Processor
Processes an element.

Specified by:
process in class Processor
Parameters:
level - the starting level in the XML trie
tag - the element to process
parser - the parser calling the processor
Returns:
the result of processing the given element
Throws:
ProcessorException - if the tag or its contents are invalid

process

public abstract java.lang.String process(int level,
                                         XMLNode tag,
                                         TemplateParser parser)
                                  throws AIMLProcessorException
Throws:
AIMLProcessorException