org.alicebot.server.core.processor.loadtime
Class StartupElementProcessor
java.lang.Object
org.alicebot.server.core.processor.Processor
org.alicebot.server.core.processor.loadtime.StartupElementProcessor
- Direct Known Subclasses:
- BotProcessor, BotsProcessor, GenderProcessor, InputProcessor, LearnProcessor, ListenerProcessor, ListenersProcessor, Person2Processor, PersonProcessor, PredicateProcessor, PredicatesProcessor, PropertiesProcessor, PropertyProcessor, SentenceSplittersProcessor, SubstitutionsProcessor
public abstract class StartupElementProcessor
- extends Processor
A StartupElementProcessor
is responsible for processing an
element in a Program D startup file.
- Since:
- 4.1.3
- Author:
- Noel Bush
Field Summary |
protected static java.lang.String |
HREF
The string "href". |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HREF
protected static final java.lang.String HREF
- The string "href".
- See Also:
- Constant Field Values
StartupElementProcessor
public StartupElementProcessor()
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 trietag
- the element to processparser
- 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,
StartupFileParser parser)
throws InvalidStartupElementException
- Throws:
InvalidStartupElementException
getHref
protected java.lang.String getHref(XMLNode tag)
- Returns the contents of the href attribute (if present).
- Returns:
- the contents of the href attribute (if present)