tomp.ext
Class Transformation

java.lang.Object
  |
  +--tomp.ext.Base
        |
        +--tomp.ext.Transformation
Direct Known Subclasses:
Transformation2DOM, Transformation2Stream

public abstract class Transformation
extends Base

This abstract Transformation class does a XSLT transformation of provided Source via specified Style. If the style == null, does an empty (identical) transformation.


Field Summary
protected  javax.xml.transform.Result result
           
protected  Source source
           
protected  javax.xml.transform.Transformer transformer
           
 
Fields inherited from class tomp.ext.Base
action, application, status, STATUS, STATUS_ABORTED, STATUS_IN_PROCESSING, STATUS_NOT_PROCESSED, STATUS_READY, STATUS_READY_INVALID, STATUS_READY_VALID, validator
 
Constructor Summary
Transformation(Action action, java.lang.String id, Validator v, Source src, Style style)
           
 
Method Summary
 void close()
           
 void setContentType(java.lang.String ct)
          Sets the MIME Content-Type (useful typically for HttpServletResponse)
 void setParameter(java.lang.String name, java.lang.Object value)
          Sets a paramater to the XSLT transformation
 void update()
          Performs the actual transformation.
 
Methods inherited from class tomp.ext.Base
abortProcessing, commitProcessing, getAsRawSource, getAsSource, id, isReady, isValid, startProcessing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

source

protected Source source

result

protected javax.xml.transform.Result result

transformer

protected javax.xml.transform.Transformer transformer
Constructor Detail

Transformation

public Transformation(Action action,
                      java.lang.String id,
                      Validator v,
                      Source src,
                      Style style)
               throws EXTException
Method Detail

update

public void update()
            throws EXTException
Performs the actual transformation.

EXTException

setContentType

public void setContentType(java.lang.String ct)
Sets the MIME Content-Type (useful typically for HttpServletResponse)

Parameters:
ct - the Content-Type, for example "text/html"

close

public void close()

setParameter

public void setParameter(java.lang.String name,
                         java.lang.Object value)
Sets a paramater to the XSLT transformation

Parameters:
name - paramater name
value - paramater value