org.activemath.presentation.xsl.symbolpresentation
Class Merger

java.lang.Object
  extended by org.activemath.presentation.xsl.symbolpresentation.Merger
All Implemented Interfaces:
EventListener, ActivemathEventListener

public class Merger
extends Object
implements ActivemathEventListener

XSLT tempaltes for the OpenMath symbols from <symbolpresentation> element in ActiveMath are generated at startup time. The class is instanciated at the ActiveMath server startup time.


Constructor Summary
Merger()
           
 
Method Summary
static void checkNeedToReload()
          Checks the time of the last XSL output and reproduces the XSL if anything was changed since then.
 org.jdom.Document getSourceDoc()
           
static void main(String[] args)
           
 void merge()
          This method get the List of <symbolpresentation> elements as JDOM tree, which is sent for code decoration to PresentationTagDecorator.
 void onActivemathEvent(ActivemathEvent event)
          Handle an Activemath event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Merger

public Merger()
Method Detail

getSourceDoc

public org.jdom.Document getSourceDoc()

onActivemathEvent

public void onActivemathEvent(ActivemathEvent event)
Description copied from interface: ActivemathEventListener
Handle an Activemath event.

This method must return as quickly as possible and must not block the calling thread for long.

Specified by:
onActivemathEvent in interface ActivemathEventListener
Parameters:
event - the event to respond to

checkNeedToReload

public static void checkNeedToReload()
Checks the time of the last XSL output and reproduces the XSL if anything was changed since then.


merge

public void merge()
           throws Exception
This method get the List of <symbolpresentation> elements as JDOM tree, which is sent for code decoration to PresentationTagDecorator. After it, it applies XSLT stylehsheet on the decorated code which generates the XSLT templates for the symbols for the output formats, i.e. HTML, MathML and LaTeX.

Throws:
Exception

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception