net.sf.saxon.event

Class TransformerReceiver

public class TransformerReceiver extends ProxyReceiver

TransformerReceiver is similar in concept to the JAXP TransformerHandler, except that it implements Saxon's Receiver interface rather than the standard SAX2 interface. This means that it allows nodes with type annotations to be passed down a pipeline from one transformation to another.
Field Summary
Builderbuilder
Controllercontroller
Resultresult
StringsystemId
Constructor Summary
TransformerReceiver(Controller controller)
Create a TransformerHandlerImpl and initialise variables.
Method Summary
voidclose()
Override the behaviour of endDocument() in ReceivingContentHandler, so that it fires off the transformation of the constructed document
ResultgetResult()
Get the output destination of the transformation
StringgetSystemId()
Get the systemId of the document
TransformergetTransformer()
Get the Transformer used for this transformation
voidopen()
Start of event stream
voidsetResult(Result result)
Set the output destination of the transformation
voidsetSystemId(String url)
Set the SystemId of the document
voidstartElement(int nameCode, int typeCode, int locationId, int properties)
Notify the start of an element

Field Detail

builder

Builder builder

controller

Controller controller

result

Result result

systemId

String systemId

Constructor Detail

TransformerReceiver

public TransformerReceiver(Controller controller)
Create a TransformerHandlerImpl and initialise variables.

Method Detail

close

public void close()
Override the behaviour of endDocument() in ReceivingContentHandler, so that it fires off the transformation of the constructed document

getResult

public Result getResult()
Get the output destination of the transformation

getSystemId

public String getSystemId()
Get the systemId of the document

getTransformer

public Transformer getTransformer()
Get the Transformer used for this transformation

open

public void open()
Start of event stream

setResult

public void setResult(Result result)
Set the output destination of the transformation

setSystemId

public void setSystemId(String url)
Set the SystemId of the document

startElement

public void startElement(int nameCode, int typeCode, int locationId, int properties)
Notify the start of an element

Parameters: nameCode integer code identifying the name of the element within the name pool. typeCode integer code identifying the element's type within the name pool. properties bit-significant properties of the element node.