|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.saxon.event.ProxyReceiver
net.sf.saxon.event.TransformerReceiver
public class TransformerReceiver
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 | |
---|---|
(package private) Builder |
builder
|
(package private) Controller |
controller
|
(package private) Result |
result
|
(package private) String |
systemId
|
Fields inherited from class net.sf.saxon.event.ProxyReceiver |
---|
baseReceiver, namePool |
Fields inherited from interface javax.xml.transform.Result |
---|
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING |
Constructor Summary | |
---|---|
TransformerReceiver(Controller controller)
Create a TransformerHandlerImpl and initialise variables. |
Method Summary | |
---|---|
void |
endDocument()
Override the behaviour of endDocument() in ContentEmitter, so that it fires off the transformation of the constructed document |
Result |
getResult()
Get the output destination of the transformation |
String |
getSystemId()
Get the systemId of the document |
Transformer |
getTransformer()
Get the Transformer used for this transformation |
void |
setResult(Result result)
Set the output destination of the transformation |
void |
setSystemId(String url)
Set the SystemId of the document |
void |
startElement(int nameCode,
int typeCode,
int properties)
Notify the start of an element |
Methods inherited from class net.sf.saxon.event.ProxyReceiver |
---|
attribute, characters, comment, endElement, getNamePool, getUnderlyingReceiver, namespace, processingInstruction, setDocumentLocator, setNamePool, setUnderlyingReceiver, setUnparsedEntity, startContent, startDocument |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
Controller controller
Builder builder
Result result
String systemId
Constructor Detail |
---|
public TransformerReceiver(Controller controller)
Method Detail |
---|
public Transformer getTransformer()
public void setSystemId(String url)
setSystemId
in interface Result
setSystemId
in interface Receiver
setSystemId
in class ProxyReceiver
public String getSystemId()
getSystemId
in interface Result
getSystemId
in class ProxyReceiver
public void startElement(int nameCode, int typeCode, int properties) throws TransformerException
startElement
in interface Receiver
startElement
in class ProxyReceiver
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:
- for future use. Should be set to zero.
TransformerException
public void setResult(Result result)
public Result getResult()
public void endDocument() throws TransformerException
endDocument
in interface Receiver
endDocument
in class ProxyReceiver
TransformerException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |