org.aitools.programd.processor.botconfiguration
Class BotConfigurationElementProcessor

java.lang.Object
  extended by org.aitools.programd.processor.Processor
      extended by org.aitools.programd.processor.botconfiguration.BotConfigurationElementProcessor
Direct Known Subclasses:
BotProcessor, BotsProcessor, LearnProcessor, ListenerProcessor, ListenersProcessor, PredicateProcessor, PredicatesProcessor, PropertiesProcessor, PropertyProcessor, SentenceSplittersProcessor, SubstitutionElementProcessor, SubstitutionsProcessor, TestingProcessor

public abstract class BotConfigurationElementProcessor
extends Processor

A BotConfigurationElementProcessor is responsible for processing an element in a Program D startup file.

Since:
4.2
Author:
Noel Bush

Field Summary
protected static java.lang.String HREF
          The string ""href"".
protected static org.apache.log4j.Logger logger
           
 
Fields inherited from class org.aitools.programd.processor.Processor
core, EMPTY_STRING, ENABLED, ID, NAME, NAME_EQUALS, VALUE, VALUE_EQUALS
 
Constructor Summary
BotConfigurationElementProcessor(Core coreToUse)
          Creates a new BotConfigurationElementProcessor with the given Core.
 
Method Summary
 java.lang.String process(org.w3c.dom.Element element, BotsConfigurationFileParser parser)
          Generic implementation of process -- just processes children.
 java.lang.String process(org.w3c.dom.Element element, GenericParser parser)
          Processes an element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HREF

protected static final java.lang.String HREF
The string ""href"".

See Also:
Constant Field Values

logger

protected static final org.apache.log4j.Logger logger
Constructor Detail

BotConfigurationElementProcessor

public BotConfigurationElementProcessor(Core coreToUse)
Creates a new BotConfigurationElementProcessor with the given Core.

Parameters:
coreToUse - the Core to use
Method Detail

process

public java.lang.String process(org.w3c.dom.Element element,
                                GenericParser parser)
                         throws ProcessorException
Description copied from class: Processor
Processes an element.

Specified by:
process in class Processor
Parameters:
element - 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
See Also:
Processor.process(Element, GenericParser)

process

public java.lang.String process(org.w3c.dom.Element element,
                                BotsConfigurationFileParser parser)
                         throws ProcessorException
Generic implementation of process -- just processes children.

Parameters:
element - the element to process
parser - the parser that is doing the processing
Returns:
the result of processing (usually ignored)
Throws:
ProcessorException - if there is an error in processing