info.bliki.html.wikipedia
Class AbstractHTMLTag

java.lang.Object
  extended by info.bliki.html.wikipedia.AbstractHTMLTag
All Implemented Interfaces:
HTMLTag
Direct Known Subclasses:
ATag, CaptionTag, ConvertEmptyHTMLTag, ImgTag, ListGCTag, ListTag, NoOutputTag, OpenCloseTag, TableGCTag, TableTag

public abstract class AbstractHTMLTag
extends java.lang.Object
implements HTMLTag


Field Summary
protected  boolean fconvertPlainText
           
 
Constructor Summary
AbstractHTMLTag()
           
AbstractHTMLTag(boolean noNewLine)
           
 
Method Summary
 void close(TagNode node, java.lang.StringBuilder resultBuffer)
          Write the closing wiki syntax for this tag to the result buffer
 void content(AbstractHTMLToWiki w, TagNode node, java.lang.StringBuilder resultBuffer, boolean showWithoutTag)
          Convert the current HTML node into wiki text.
 void emptyContent(AbstractHTMLToWiki html2WikiConverter, TagNode node, java.lang.StringBuilder resultBuffer, boolean showWithoutTag)
          Convert the current HTML node, which has no children nodes into wiki text.
 BaseToken getFirstContent(java.util.List<java.lang.Object> children, java.lang.String tagName)
          Get the first ContentToken or TagNode with the given tagName.
 void open(TagNode node, java.lang.StringBuilder resultBuffer)
          Write the opening wiki syntax for this tag to the result buffer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fconvertPlainText

protected boolean fconvertPlainText
Constructor Detail

AbstractHTMLTag

public AbstractHTMLTag()

AbstractHTMLTag

public AbstractHTMLTag(boolean noNewLine)
Method Detail

close

public void close(TagNode node,
                  java.lang.StringBuilder resultBuffer)
Description copied from interface: HTMLTag
Write the closing wiki syntax for this tag to the result buffer

Specified by:
close in interface HTMLTag
See Also:
HTMLTag.open(TagNode, StringBuilder)

open

public void open(TagNode node,
                 java.lang.StringBuilder resultBuffer)
Description copied from interface: HTMLTag
Write the opening wiki syntax for this tag to the result buffer

Specified by:
open in interface HTMLTag
See Also:
HTMLTag.close(TagNode, StringBuilder)

emptyContent

public void emptyContent(AbstractHTMLToWiki html2WikiConverter,
                         TagNode node,
                         java.lang.StringBuilder resultBuffer,
                         boolean showWithoutTag)
Description copied from interface: HTMLTag
Convert the current HTML node, which has no children nodes into wiki text.

Specified by:
emptyContent in interface HTMLTag
Parameters:
html2WikiConverter - the converter which contains the special wiki tag conversion rules.
node - the current HTML node which should be converted to HTML
resultBuffer - the resulting HTML buffer
showWithoutTag - if true don't call the open() and close() method for this tag

content

public void content(AbstractHTMLToWiki w,
                    TagNode node,
                    java.lang.StringBuilder resultBuffer,
                    boolean showWithoutTag)
Description copied from interface: HTMLTag
Convert the current HTML node into wiki text.

Specified by:
content in interface HTMLTag
Parameters:
w - the converter which contains the special wiki tag conversion rules.
node - the current HTML node which should be converted to HTML
resultBuffer - the resulting HTML buffer
showWithoutTag - if true don't call the open() and close() method for this tag

getFirstContent

public BaseToken getFirstContent(java.util.List<java.lang.Object> children,
                                 java.lang.String tagName)
Get the first ContentToken or TagNode with the given tagName.

Parameters:
children -
tagName -
Returns:


Copyright © 2012 Java Wikipedia API (Bliki engine). All Rights Reserved.