net.sf.xbus.protocol.records
Class RecordTypeTransformer

java.lang.Object
  extended by net.sf.xbus.protocol.xml.XSLTTransformer
      extended by net.sf.xbus.protocol.records.RecordTypeTransformer
All Implemented Interfaces:
Transformer

public class RecordTypeTransformer
extends XSLTTransformer
implements Transformer

RecordTypeTransformer transforms one RecordTypeMessage into another one - according to a xsl transformation description. The class is pretty like the XSLTTransformer. The only difference is a whitespace cleaning after the transformation.


Field Summary
 
Fields inherited from class net.sf.xbus.protocol.xml.XSLTTransformer
XSL_LOCATION
 
Constructor Summary
RecordTypeTransformer()
           
 
Method Summary
 java.lang.Object transform(java.lang.Object inObject, XBUSSystem source, XBUSSystem destination, Message destinationMessage)
          The transform method is automatically called by the xBus during the routing of messages.
 org.w3c.dom.Document transformSingleRecord(org.w3c.dom.Document inDoc, java.lang.String xsltStylesheet)
           
 
Methods inherited from class net.sf.xbus.protocol.xml.XSLTTransformer
createMessage, getXSLTransformer, putStyletValue, transformXML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecordTypeTransformer

public RecordTypeTransformer()
Method Detail

transform

public java.lang.Object transform(java.lang.Object inObject,
                                  XBUSSystem source,
                                  XBUSSystem destination,
                                  Message destinationMessage)
                           throws XException
The transform method is automatically called by the xBus during the routing of messages.

Specified by:
transform in interface Transformer
Overrides:
transform in class XSLTTransformer
Parameters:
inObject - either the request or response that shall be transformed to another format
source - the XBUSSystem of the message of the inObject
destination - the XBUSSystem of the target message
destinationMessage - the target message eventually contains more information necessary for transforming
Returns:
the transformed Object, written to either the request or response of the target message
Throws:
XException

transformSingleRecord

public org.w3c.dom.Document transformSingleRecord(org.w3c.dom.Document inDoc,
                                                  java.lang.String xsltStylesheet)
                                           throws XException
Parameters:
inDoc -
xsltStylesheet -
Returns:
???
Throws:
XException