org.alicebot.server.core.processor.loadtime
Class SubstitutionsProcessor

java.lang.Object
  extended by org.alicebot.server.core.processor.Processor
      extended by org.alicebot.server.core.processor.loadtime.StartupElementProcessor
          extended by 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.
 
Fields inherited from class org.alicebot.server.core.processor.loadtime.StartupElementProcessor
HREF
 
Fields inherited from class org.alicebot.server.core.processor.Processor
EMPTY_STRING, ENABLED, ID, NAME, NAME_EQUALS, VALUE, VALUE_EQUALS
 
Constructor Summary
SubstitutionsProcessor()
           
 
Method Summary
(package private) static void addSubstitutions(int type, XMLNode tag, StartupFileParser parser)
          Adds substitutions of the specified type.
 java.lang.String process(int level, XMLNode tag, StartupFileParser parser)
           
 
Methods inherited from class org.alicebot.server.core.processor.loadtime.StartupElementProcessor
getHref, process
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

SubstitutionsProcessor

public SubstitutionsProcessor()
Method Detail

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 add
tag - the container of the <substitute/> elements
parser - the parser handling this
Throws:
InvalidStartupElementException - if the element content is bad