Groovy Documentation

java.gate.yam.translate
Class HtmlTranslator

java.lang.Object
  java.gate.yam.translate.AbstractTranslator
      java.gate.yam.translate.HtmlTranslator
All Implemented Interfaces:
HtmlConstants

class HtmlTranslator
extends AbstractTranslator

This class provides translation of YAM into XHTML.

author:
Hamish Cunningham


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.

String makePreamble(String title)

Construct the preamble/header for the document.

void processURLs(SimpleNode node)

Process URLs and Anchors.

 
Methods inherited from class AbstractTranslator
addToFooter, elide, getConstantArray, getConstantEnd, getConstantEnd, getConstantStart, getConstantStart, getHeadingNumber, getIndent, getNodeImage, getNodeImage, makeContents, makeHeader, makePreamble, makePreamble, pr, printEndNotes, printTree, printTree, printTree, prln, processControl, processPredicate, processURLs, setIOHandler, setParseTree, setWriter, subNewlines, translate
 

Constructor Detail

HtmlTranslator

public HtmlTranslator()
Construction.


 
Method Detail

getConstantsTable

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


getPreamblePath

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


getPredicatesTable

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


makePreamble

@Override
public String makePreamble(String title)
Construct the preamble/header for the document.


processURLs

public void processURLs(SimpleNode node)
Process URLs and Anchors.


 

Groovy Documentation