com.overzealous.remark.convert
Class Anchor

java.lang.Object
  extended by com.overzealous.remark.convert.AbstractNodeHandler
      extended by com.overzealous.remark.convert.Anchor
All Implemented Interfaces:
NodeHandler

public class Anchor
extends AbstractNodeHandler

Handles anchor (a) tags, both links and named anchors.

Author:
Phil DeJarnett

Constructor Summary
Anchor()
           
 
Method Summary
 void handleNode(NodeHandler parent, Element node, DocumentConverter converter)
          Creates a link reference, and renders the correct output.
 
Methods inherited from class com.overzealous.remark.convert.AbstractNodeHandler
handleIgnoredHTMLElement, handleTextNode, prependAndRecurse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Anchor

public Anchor()
Method Detail

handleNode

public void handleNode(NodeHandler parent,
                       Element node,
                       DocumentConverter converter)
Creates a link reference, and renders the correct output. If this happens to be a named anchor, then it is simply removed from output.

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.


© 2011 OverZealous Creations, LLC - BitBucket Repository