gate.yam.translate
Class HtmlTranslator

java.lang.Object
  extended by gate.yam.translate.AbstractTranslator
      extended by gate.yam.translate.HtmlTranslator
All Implemented Interfaces:
HtmlConstants, TranslationConstants

public class HtmlTranslator
extends AbstractTranslator
implements HtmlConstants

This class provides translation of YAM into XHTML.

Author:
Hamish Cunningham

Field Summary
 
Fields inherited from class gate.yam.translate.AbstractTranslator
translatorType
 
Fields inherited from interface gate.yam.translate.HtmlConstants
footnoteAttrs, htmlConstantsTable, htmlPredicatesTable, imageAttrs, includeAttrs
 
Fields inherited from interface gate.yam.translate.TranslationConstants
CONSTANTEND, CONSTANTNAME, CONSTANTSTART
 
Constructor Summary
HtmlTranslator()
          Construction.
 
Method Summary
 String[][] getConstantsTable()
          Array mapping node type name to start/end strings.
 String getPreamblePath()
          Get the path to the preamble resource.
 Object[][] getPredicatesTable()
          Array mapping predicate type name to attributes.
 void processURLs(SimpleNode node)
          Process URLs and Anchors.
 
Methods inherited from class gate.yam.translate.AbstractTranslator
addToFooter, getConstantEnd, getConstantStart, makeContents, makePreamble, printEndNotes, printTree, printTree, printTree, setIOHandler, setParseTree, setWriter, translate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlTranslator

public HtmlTranslator()
Construction.

Method Detail

getPreamblePath

public String getPreamblePath()
Get the path to the preamble resource.

Specified by:
getPreamblePath in interface TranslationConstants

getConstantsTable

public String[][] getConstantsTable()
Array mapping node type name to start/end strings.

Specified by:
getConstantsTable in interface TranslationConstants

getPredicatesTable

public Object[][] getPredicatesTable()
Array mapping predicate type name to attributes.

Specified by:
getPredicatesTable in interface TranslationConstants

processURLs

public void processURLs(SimpleNode node)
                 throws gate.util.GateException
Process URLs and Anchors.

Specified by:
processURLs in class AbstractTranslator
Throws:
gate.util.GateException