gate.wiki.antlr
Class WikiHTMLTarget

java.lang.Object
  extended by gate.wiki.antlr.NOPTarget
      extended by gate.wiki.antlr.HTMLTarget
          extended by gate.wiki.antlr.WikiHTMLTarget
All Implemented Interfaces:
YAMTarget

public class WikiHTMLTarget
extends HTMLTarget

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.

Author:
tamara

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

WikiHTMLTarget

public WikiHTMLTarget()
Keeps track of the heading numbering


WikiHTMLTarget

public WikiHTMLTarget(Writer out)
Method Detail

getTargetLanguage

public String getTargetLanguage()
Description copied from interface: YAMTarget
Typically "HTML", or "Lout"

Specified by:
getTargetLanguage in interface YAMTarget
Overrides:
getTargetLanguage in class HTMLTarget

begin

public void begin()
insert head.html if found

Specified by:
begin in interface YAMTarget
Overrides:
begin in class HTMLTarget

end

public void end()
insert tail.html if found

Specified by:
end in interface YAMTarget
Overrides:
end in class HTMLTarget

wikilink

public void wikilink(String url,
                     String title)
wikilinks should be implemented here. Support for checking for existing pages should also be implemented here.

Specified by:
wikilink in interface YAMTarget
Overrides:
wikilink in class NOPTarget

title

public void title(String title)
Specified by:
title in interface YAMTarget
Overrides:
title in class HTMLTarget