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 NodeHandler

Interface for classes that handle processing HTML Elements.

Author:
Phil DeJarnett

Method Summary
 void handleIgnoredHTMLElement(Element node, DocumentConverter converter)
          Handle an ignored HTMLElement.
 void handleNode(NodeHandler parent, Element node, DocumentConverter converter)
          Handles an HTML Element node.
 void handleTextNode(TextNode node, DocumentConverter converter)
          Handle a child text node.
 

Method Detail

handleNode

void handleNode(NodeHandler parent,
                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 handle
converter - Parent converter for this object.

handleTextNode

void handleTextNode(TextNode node,
                    DocumentConverter converter)
Handle a child text node.

Parameters:
node - Node to handle
converter - Parent converter for this object.

handleIgnoredHTMLElement

void handleIgnoredHTMLElement(Element node,
                              DocumentConverter converter)
Handle an ignored HTMLElement.

Parameters:
node - Node to handle
converter - Parent converter for this object.


© 2011 OverZealous Creations, LLC - BitBucket Repository