org.milyn.delivery.dom
Interface DOMElementVisitor

All Superinterfaces:
ContentHandler, DOMVisitAfter, DOMVisitBefore, DOMVisitor, Visitor
All Known Implementing Classes:
AbstractDataSource, AbstractOutputStreamResource, DirectDataSource, JndiDataSource

public interface DOMElementVisitor
extends DOMVisitBefore, DOMVisitAfter

Element Visitor (GoF) interface for DOM.

SmooksDOMFilter filters (analyses/transforms) XML/XHTML/HTML content by "visting" the DOM Element nodes through a series of iterations over the source XML DOM.

This interface defines the methods for a "visiting" filter. Implementations of this interface provide a means of hooking analysis and transformation logic into the SmooksDOMFilter filtering process.

Implementations should be annotated with the Phase annotation, indicating in which of the Visit Phases the visitor should be applied. If not annotated, the visitor is applied during the Processing phase. The phase may also be specified via the "VisitPhase" property on the resource configuration. Valid values in this case are "ASSEMBLY" and "PROCESSING".

Implementations must be stateless. If state storage is required, attach the state to the supplied ExecutionContext.

Author:
tom.fennelly@gmail.com

Method Summary
 
Methods inherited from interface org.milyn.delivery.dom.DOMVisitBefore
visitBefore
 
Methods inherited from interface org.milyn.delivery.dom.DOMVisitAfter
visitAfter
 



Copyright © 2008. All Rights Reserved.