org.milyn.delivery.sax
Interface SAXVisitChildren

All Superinterfaces:
ContentHandler, SAXVisitor, Visitor
All Known Subinterfaces:
SAXElementVisitor
All Known Implementing Classes:
ContextObjectSerializationUnit, DefaultSAXElementSerializer, GhostElementSerializationUnit

public interface SAXVisitChildren
extends SAXVisitor

SAX Visit children events.

Author:
tom.fennelly@gmail.com

Method Summary
 void onChildElement(SAXElement element, SAXElement childElement, ExecutionContext executionContext)
          Process the onChildElement event for the targeted element.
 void onChildText(SAXElement element, SAXText childText, ExecutionContext executionContext)
          Process the onChildText event for the targeted element.
 

Method Detail

onChildText

void onChildText(SAXElement element,
                 SAXText childText,
                 ExecutionContext executionContext)
                 throws SmooksException,
                        IOException
Process the onChildText event for the targeted element.

Be careful when caching element data. This is not a DOM.

Parameters:
element - The element containing the text (parent). The targeted element.
childText - The text.
executionContext - Execution context.
Throws:
SmooksException - Event processing failure.
IOException - Error writing event to output writer.

onChildElement

void onChildElement(SAXElement element,
                    SAXElement childElement,
                    ExecutionContext executionContext)
                    throws SmooksException,
                           IOException
Process the onChildElement event for the targeted element.

Be careful when caching element data. This is not a DOM.

Parameters:
element - The element containing the child element (parent). The targeted element.
childElement - The child element just added to the targeted element.
executionContext - Execution context.
Throws:
SmooksException - Event processing failure.
IOException - Error writing event to output writer.


Copyright © 2009. All Rights Reserved.