|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgate.wiki.antlr.NOPTarget
gate.wiki.antlr.HTMLTarget
gate.wiki.antlr.WikiHTMLTarget
public class WikiHTMLTarget
This class implements translation to HTML with WikiLinks and without headers. This is beneficial when making a segmented page, with different files being brought together, you might not want header and title information.
| Field Summary |
|---|
| Fields inherited from class gate.wiki.antlr.HTMLTarget |
|---|
fileContents, HEADING_DEPTH, headingCount, HTML_map, inContents, tableOfContents |
| Fields inherited from class gate.wiki.antlr.NOPTarget |
|---|
lastCommand, out |
| Constructor Summary | |
|---|---|
WikiHTMLTarget()
Keeps track of the heading numbering |
|
WikiHTMLTarget(Writer out)
|
|
| Method Summary | |
|---|---|
void |
begin()
insert head.html if found |
void |
end()
insert tail.html if found |
String |
getTargetLanguage()
Typically "HTML", or "Lout" |
void |
title(String title)
|
void |
wikilink(String url,
String title)
wikilinks should be implemented here. |
| Methods inherited from class gate.wiki.antlr.HTMLTarget |
|---|
anchor, angleBracketsEscape, begin_ol, begin_table, begin_ul, beginBF, beginEM, beginListItem, beginSection, beginTT, blankline, blockquote, bold, box, c, cite, code, col, contents, date, delete, end_ol, end_table, end_ul, endBF, endEM, endListItem, endTT, eps, extractLastCommand, footnote, hr, image, italic, linebreak, link, longdash, notes, paragraph, resetContents, row, strip, syndiag, text, tree, tt, verbatim, write |
| Methods inherited from class gate.wiki.antlr.NOPTarget |
|---|
beginSectionList, endSection, endSectionList, getLastOutputCommand, include, writeln |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WikiHTMLTarget()
public WikiHTMLTarget(Writer out)
| Method Detail |
|---|
public String getTargetLanguage()
YAMTarget
getTargetLanguage in interface YAMTargetgetTargetLanguage in class HTMLTargetpublic void begin()
begin in interface YAMTargetbegin in class HTMLTargetpublic void end()
end in interface YAMTargetend in class HTMLTarget
public void wikilink(String url,
String title)
wikilink in interface YAMTargetwikilink in class NOPTargetpublic void title(String title)
title in interface YAMTargettitle in class HTMLTarget
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||