Package org.activemath.presentation.preproc

The preprocessor package contains routines that pre-process OMDoc documents before they are being transformed.

See:
          Description

Interface Summary
Task A Task is a general processing unit that is called on each of the elements being walked through by the PreProcessor.
TaskFactory /** A simple factory interface to describe objects that can generate tasks which will be used exactly once.
 

Class Summary
OmletExpresserTask This task changes all the omlet tags for which a proxy-factory exists and calls the correspond org.activemath.proxies.ProxyFactory#getTagInPage replacing the complete omlet element by the returned HTML text.
PrepareForCnPTask A pre-processor to mark the coordinate of each node for further references.
PreProcessor This class is responsible to pre-process an OMDoc by walking through all elements and performing Tasks on each of them.
RefEncoderTask This tasks applies an escaping of characters on all declared id values and references so that they can be used in the middle of URLs and URL parameters.
SymbolDeclarationsTask This stateful task is responsible for the insertion the symbol pseudo-declarations at the end of the element being processed for all the symbols that appear inside the named element (as OMS elements) so that the presentation can show the title of the symbol under the mouse.
 

Package org.activemath.presentation.preproc Description

The preprocessor package contains routines that pre-process OMDoc documents before they are being transformed.

Most of the processing involved is ActiveMath-specific and enables such things as correct links (which remember user-name, which can contain MBase ids...), transformations of <omlet> elements using the appropriate org.activemath.proxies.ProxyFactory, or preparation to a better interactivity.

The central class of pre-processing is operated by the PreProcessor class which is a generic tree-walker that performs the Tasks it is given.

A Task is a simple processing unit that is called on each Element and performs the appropriate job. A Task object is produced by TaskFactory which can, if it needs, create a new object at every call, thereby allowing stateful tasks.

This package is meant to contain almost all generally useful pre-processing task although it is not at all required.