public class OpenCloseTag extends AbstractHTMLTag
| Modifier and Type | Field and Description |
|---|---|
protected String |
closeStr |
protected boolean |
formatContent |
protected String |
openStr |
fconvertPlainText| Constructor and Description |
|---|
OpenCloseTag(String opener,
String closer) |
OpenCloseTag(String opener,
String closer,
boolean convertPlainText) |
OpenCloseTag(String opener,
String closer,
boolean convertPlainText,
boolean formatContent) |
| Modifier and Type | Method and Description |
|---|---|
void |
close(TagNode node,
StringBuilder resultBuffer)
Write the closing wiki syntax for this tag to the result buffer
|
void |
content(AbstractHTMLToWiki w,
TagNode node,
StringBuilder resultBuffer,
boolean showWithoutTag)
Convert the current HTML node into wiki text.
|
void |
formatContent(String str,
StringBuilder resultBuffer) |
String |
getCloseStr() |
String |
getOpenStr() |
void |
open(TagNode node,
StringBuilder resultBuffer)
Write the opening wiki syntax for this tag to the result buffer
|
void |
setCloseStr(String closeStr) |
void |
setOpenStr(String openStr) |
emptyContent, getFirstContentprotected String openStr
protected String closeStr
protected final boolean formatContent
public OpenCloseTag(String opener, String closer, boolean convertPlainText, boolean formatContent)
opener - opening string for this tagcloser - closing string for this tagconvertPlainText - create plain text output without wiki tagsformatContent - format the intermediate resulting wiki content by reducing
multiple spaces to only one space ' ' characterpublic void open(TagNode node, StringBuilder resultBuffer)
HTMLTagopen in interface HTMLTagopen in class AbstractHTMLTagHTMLTag.close(TagNode, StringBuilder)public void content(AbstractHTMLToWiki w, TagNode node, StringBuilder resultBuffer, boolean showWithoutTag)
HTMLTagcontent in interface HTMLTagcontent in class AbstractHTMLTagw - the converter which contains the special wiki tag conversion
rules.node - the current HTML node which should be converted to HTMLresultBuffer - the resulting HTML buffershowWithoutTag - if true don't call the open() and close() method for
this tagpublic void formatContent(String str, StringBuilder resultBuffer)
public void close(TagNode node, StringBuilder resultBuffer)
HTMLTagclose in interface HTMLTagclose in class AbstractHTMLTagHTMLTag.open(TagNode, StringBuilder)public String getOpenStr()
public void setOpenStr(String openStr)
public String getCloseStr()
public void setCloseStr(String closeStr)
Copyright © 2017 Java Wikipedia API (Bliki engine). All rights reserved.