org.alicebot.server.core.processor
Class PersonProcessor
java.lang.Object
org.alicebot.server.core.processor.Processor
org.alicebot.server.core.processor.AIMLProcessor
org.alicebot.server.core.processor.PersonProcessor
public class PersonProcessor
- extends AIMLProcessor
Handles a
person
element.
Currently does not permit definition of person substitutions
in an external file (they are hard-coded in Substituter#person
.
- Version:
- 4.1.3
- Author:
- Jon Baer, Thomas Ringate, Pedro Colla
Field Summary |
static java.lang.String |
label
|
Method Summary |
static java.lang.String |
applySubstitutions(java.lang.String input,
java.lang.String botid)
Applies substitutions as defined in the #substitutionMap . |
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 |
label
public static final java.lang.String label
- See Also:
- Constant Field Values
PersonProcessor
public PersonProcessor()
process
public java.lang.String process(int level,
XMLNode tag,
TemplateParser parser)
- Specified by:
process
in class AIMLProcessor
applySubstitutions
public static java.lang.String applySubstitutions(java.lang.String input,
java.lang.String botid)
- Applies substitutions as defined in the
#substitutionMap
.
Comparisons are case-insensitive.
- Parameters:
input
- the input on which to perform substitutions
- Returns:
- the input with substitutions performed