de.unikiel.ipn.htmlform
Class HTMLVisitor

java.lang.Object
  |
  +--de.unikiel.ipn.htmlform.HTMLVisitor
All Implemented Interfaces:
MessageHandler, TextVisitor

class HTMLVisitor
extends java.lang.Object
implements TextVisitor

A html converter.


Constructor Summary
(package private) HTMLVisitor(MessageHandler handler)
          Creates a new instance of this HTMLVisitor.
 
Method Summary
 void handleMessage(Message msg)
          Forwards the Message to the successor.
 void visit(Entry e)
          Converts all htmlentities in the entry's content.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTMLVisitor

HTMLVisitor(MessageHandler handler)
Creates a new instance of this HTMLVisitor.

Parameters:
handler - the MessageHandler for error messages that may occur.
Method Detail

visit

public void visit(Entry e)
Converts all htmlentities in the entry's content.

Specified by:
visit in interface TextVisitor
Parameters:
e - the Entry.
See Also:
Entry.accept(TextVisitor)

handleMessage

public final void handleMessage(Message msg)
Forwards the Message to the successor. See constructor.

Specified by:
handleMessage in interface MessageHandler
Parameters:
msg - the message that shall be passed to the successor.