Rev | Line | |
---|
[75] | 1 | package de.ugoe.cs.eventbench.windows;
|
---|
[1] | 2 |
|
---|
[171] | 3 | /**
|
---|
| 4 | * <p>
|
---|
| 5 | * Base class to define custom message handlers, for messages that shall be
|
---|
| 6 | * handled differently during the parsing of usage logs. It provides dummy
|
---|
| 7 | * implementations for all required methods, such that implementations can only
|
---|
| 8 | * overwrite the parts they actually require and ignore the rest.
|
---|
| 9 | * </p>
|
---|
| 10 | *
|
---|
| 11 | * @author Steffen Herbold
|
---|
| 12 | * @version 1.0
|
---|
| 13 | */
|
---|
| 14 | public class MessageHandler {
|
---|
[1] | 15 |
|
---|
[171] | 16 | /**
|
---|
| 17 | * <p>
|
---|
| 18 | * Constructor. Protected to prohibit initialization of the base class
|
---|
| 19 | * itself.
|
---|
| 20 | * </p>
|
---|
| 21 | */
|
---|
| 22 | protected MessageHandler() {
|
---|
| 23 | }
|
---|
| 24 |
|
---|
| 25 | /**
|
---|
| 26 | * <p>
|
---|
[297] | 27 | * Called in the startElement() method of the {@link MFCLogParser} when a
|
---|
[171] | 28 | * msg-node begins.
|
---|
| 29 | * </p>
|
---|
| 30 | */
|
---|
| 31 | public void onStartElement() {
|
---|
| 32 | }
|
---|
| 33 |
|
---|
| 34 | /**
|
---|
| 35 | * <p>
|
---|
[297] | 36 | * Called by the {@link MFCLogParser} to handle param-nodes.
|
---|
[171] | 37 | * </p>
|
---|
| 38 | *
|
---|
| 39 | * @param name
|
---|
| 40 | * name (type) of the parameter
|
---|
| 41 | * @param value
|
---|
| 42 | * value of the parameter
|
---|
| 43 | */
|
---|
| 44 | public void onParameter(String name, String value) {
|
---|
| 45 | }
|
---|
| 46 |
|
---|
| 47 | /**
|
---|
| 48 | * <p>
|
---|
[297] | 49 | * Called in the endElement() method of {@link MFCLogParser} when a msg-node
|
---|
[171] | 50 | * ends.
|
---|
| 51 | * </p>
|
---|
| 52 | */
|
---|
| 53 | public void onEndElement() {
|
---|
| 54 | }
|
---|
[1] | 55 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.