gate.yam.translate
Class LaTeXTranslator

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

public class LaTeXTranslator
extends AbstractTranslator
implements LaTeXConstants

This class provides translation of YAM into LaTeX.

Author:
Hamish Cunningham

Field Summary
 
Fields inherited from class gate.yam.translate.AbstractTranslator
translatorType
 
Fields inherited from interface gate.yam.translate.LaTeXConstants
citationAttr, citationAttrs, footnoteAttrs, imageAttrs, includeAttrs, latexConstantsTable, latexPredicatesTable
 
Fields inherited from interface gate.yam.translate.TranslationConstants
CONSTANTEND, CONSTANTNAME, CONSTANTSTART
 
Constructor Summary
LaTeXTranslator()
          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

LaTeXTranslator

public LaTeXTranslator()
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