echopointng.ui.util
Interface HtmlNodeLexer.HtmlLexerCallBack

Enclosing class:
HtmlNodeLexer

public static interface HtmlNodeLexer.HtmlLexerCallBack

The HtmlLexerCallBack interface is used as a callback mechanism when a specific type of HTML node is encountered.


Method Summary
 java.lang.StringBuffer onCommentNode(java.lang.StringBuffer comment)
          Called then an Comment has been fully lexed.
 java.lang.StringBuffer onElementNode(java.lang.StringBuffer element)
          Called then an Element has been fully lexed.
 java.lang.StringBuffer onTextNode(java.lang.StringBuffer textNode)
          Called then a textNode has been fully lexed.
 

Method Detail

onTextNode

java.lang.StringBuffer onTextNode(java.lang.StringBuffer textNode)
Called then a textNode has been fully lexed. The callee can modify the text node and pass back a new text node value.

Parameters:
textNode - - the StringBuffer of text
Returns:
the possibly modified text node

onElementNode

java.lang.StringBuffer onElementNode(java.lang.StringBuffer element)
Called then an Element has been fully lexed. The callee can modify the Element node and pass back a new Element node value.

Parameters:
element - - a StringBuffer of the Element
Returns:
the possibly modified Element

onCommentNode

java.lang.StringBuffer onCommentNode(java.lang.StringBuffer comment)
Called then an Comment has been fully lexed. The callee can modify the Comment node and pass back a new Comment node value.

Parameters:
comment - - a StringBuffer of the Comment
Returns:
the possibly modified Comment