|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.alicebot.server.core.processor.Processor
public abstract class Processor
A Processor
is responsible for processing an
element. Subclasses of this base class need
only implement the #processElement
method and set
label
to the appropriate string.
Field Summary | |
---|---|
protected static java.lang.String |
EMPTY_STRING
An empty string, for convenience. |
protected static java.lang.String |
ENABLED
The string "enabled". |
protected static java.lang.String |
ID
The string "id", for convenience. |
static java.lang.String |
label
The label of a tag that this processor should process. |
protected static java.lang.String |
NAME
The string "name", for convenience. |
protected static java.lang.String |
NAME_EQUALS
The string "name=", for convenience. |
protected static java.lang.String |
VALUE
The string "value", for convenience. |
protected static java.lang.String |
VALUE_EQUALS
The string "value=", for convenience. |
Constructor Summary | |
---|---|
Processor()
|
Method Summary | |
---|---|
abstract java.lang.String |
process(int level,
XMLNode tag,
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 |
---|
public static final java.lang.String label
protected static final java.lang.String EMPTY_STRING
protected static final java.lang.String NAME
protected static final java.lang.String VALUE
protected static final java.lang.String NAME_EQUALS
protected static final java.lang.String VALUE_EQUALS
protected static final java.lang.String ID
protected static final java.lang.String ENABLED
Constructor Detail |
---|
public Processor()
Method Detail |
---|
public abstract java.lang.String process(int level, XMLNode tag, GenericParser parser) throws ProcessorException
level
- the starting level in the XML trietag
- the element to processparser
- the parser calling the processor
ProcessorException
- if the tag
or its contents are invalid
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |