Milyn-Smooks Version 0.4

org.milyn.delivery
Interface ElementVisitor

All Superinterfaces:
ContentDeliveryUnit
All Known Subinterfaces:
AssemblyUnit, TransUnit, TransUnitPrototype
All Known Implementing Classes:
AbstractAssemblyUnit, AbstractTransUnit

public interface ElementVisitor
extends ContentDeliveryUnit

Element Visitor (GoF) interface.

Author:
tfennelly

Method Summary
 void visit(org.w3c.dom.Element element, ContainerRequest containerRequest)
          Visit the supplied element.
 boolean visitBefore()
          Call the visit(Element, ContainerRequest) method of this ElementVisitor before iterating over the associated elements child content.
 
Methods inherited from interface org.milyn.delivery.ContentDeliveryUnit
getDetailDescription, getShortDescription
 

Method Detail

visit

public void visit(org.w3c.dom.Element element,
                  ContainerRequest containerRequest)
Visit the supplied element.

Implementations of this method should contain logic to perform an operation on the supplied DOM element.

Parameters:
element - The DOM element being visited.
containerRequest - Request relative instance.

visitBefore

public boolean visitBefore()
Call the visit(Element, ContainerRequest) method of this ElementVisitor before iterating over the associated elements child content.

This method simply controls when the visit(Element, ContainerRequest) method is called on the target element relative to Smooks iterating over the target elements child content i.e. before (true) or after (false).

Returns:
true if the visit(Element, ContainerRequest) method should be called before iterating over the target element's child content, false if the visit(Element, ContainerRequest) method should be called after iterating over the target element's child content.

Milyn-Smooks Version 0.4