Package com.overzealous.remark.convert
Interface NodeHandler
-
- All Known Implementing Classes:
Abbr,AbstractNodeHandler,Anchor,BlockQuote,Break,Codeblock,DefaultNodeHandler,Definitions,Header,HorizontalRule,Image,InlineCode,InlineStyle,List,NodeRemover,Paragraph,Table
public interface NodeHandlerInterface for classes that handle processing HTML Elements.- Author:
- Phil DeJarnett
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidhandleIgnoredHTMLElement(org.jsoup.nodes.Element node, DocumentConverter converter)Handle an ignored HTMLElement.voidhandleNode(NodeHandler parent, org.jsoup.nodes.Element node, DocumentConverter converter)Handles an HTML Element node.voidhandleTextNode(org.jsoup.nodes.TextNode node, DocumentConverter converter)Handle a child text node.
-
-
-
Method Detail
-
handleNode
void handleNode(NodeHandler parent, org.jsoup.nodes.Element node, DocumentConverter converter)
Handles an HTML Element node. This is where most of the work is done. Which NodeHandler is used is based on the tagName of the element.- Parameters:
parent- The previous node walker, in case we just want to remove an element.node- Node to handleconverter- Parent converter for this object.
-
handleTextNode
void handleTextNode(org.jsoup.nodes.TextNode node, DocumentConverter converter)Handle a child text node.- Parameters:
node- Node to handleconverter- Parent converter for this object.
-
handleIgnoredHTMLElement
void handleIgnoredHTMLElement(org.jsoup.nodes.Element node, DocumentConverter converter)Handle an ignored HTMLElement.- Parameters:
node- Node to handleconverter- Parent converter for this object.
-
-