org.alicebot.server.core.processor.loadtime
Class SubstitutionsProcessor
java.lang.Object
org.alicebot.server.core.processor.Processor
org.alicebot.server.core.processor.loadtime.StartupElementProcessor
org.alicebot.server.core.processor.loadtime.SubstitutionsProcessor
public class SubstitutionsProcessor
- extends StartupElementProcessor
The substitutions
element is a container
for definitions of various substitutions performed by
the engine.
Field Summary |
(package private) static int |
GENDER
A gender substitution. |
(package private) static int |
INPUT
An input substitution. |
static java.lang.String |
label
|
(package private) static int |
PERSON
A person substitution. |
(package private) static int |
PERSON2
A person2 substitution. |
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
INPUT
static final int INPUT
- An input substitution.
- See Also:
- Constant Field Values
GENDER
static final int GENDER
- A gender substitution.
- See Also:
- Constant Field Values
PERSON
static final int PERSON
- A person substitution.
- See Also:
- Constant Field Values
PERSON2
static final int PERSON2
- A person2 substitution.
- See Also:
- Constant Field Values
SubstitutionsProcessor
public SubstitutionsProcessor()
process
public java.lang.String process(int level,
XMLNode tag,
StartupFileParser parser)
throws InvalidStartupElementException
- Specified by:
process
in class StartupElementProcessor
- Throws:
InvalidStartupElementException
addSubstitutions
static void addSubstitutions(int type,
XMLNode tag,
StartupFileParser parser)
throws InvalidStartupElementException
- Adds substitutions of the specified type.
- Parameters:
type
- the type of substitution to addtag
- the container of the <substitute/> elementsparser
- the parser handling this
- Throws:
InvalidStartupElementException
- if the element content is bad