ZPT-Sharp  v1.0.0
Zope Page Templates for .NET
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties
CSF.Zpt.Tal.TalVisitor Class Reference

Implementation of IContextVisitor which performs TAL-related functionality. More...

Inheritance diagram for CSF.Zpt.Tal.TalVisitor:
Collaboration diagram for CSF.Zpt.Tal.TalVisitor:

Public Member Functions

override IRenderingContext[] Visit (IRenderingContext context)
 Visit the given context and return a collection of the resultant contexts. More...
 
override IRenderingContext[] VisitRecursively (IRenderingContext context)
 Visit the given context, as well as its child contexts, and return a collection of the resultant contexts. More...
 
 TalVisitor ()
 Initializes a new instance of the CSF.Zpt.Tal.TalVisitor class. More...
 
 TalVisitor (IAttributeHandler[] handlers=null, IAttributeHandler errorHandler=null)
 Initializes a new instance of the CSF.Zpt.Tal.TalVisitor class. More...
 
- Public Member Functions inherited from CSF.Zpt.Rendering.ContextVisitorBase
virtual IRenderingContext[] VisitContext (IRenderingContext context)
 Visits a rendering context and returns a collection of contexts which represent the result of that visit. More...
 

Detailed Description

Implementation of IContextVisitor which performs TAL-related functionality.

Constructor & Destructor Documentation

CSF.Zpt.Tal.TalVisitor.TalVisitor ( )
inline

Initializes a new instance of the CSF.Zpt.Tal.TalVisitor class.

CSF.Zpt.Tal.TalVisitor.TalVisitor ( IAttributeHandler[]  handlers = null,
IAttributeHandler  errorHandler = null 
)
inline

Initializes a new instance of the CSF.Zpt.Tal.TalVisitor class.

Parameters
handlersA collection of IAttributeHandler to process.
errorHandlerAn IAttributeHandler which should be used to handle any errors.

Member Function Documentation

override IRenderingContext [] CSF.Zpt.Tal.TalVisitor.Visit ( IRenderingContext  context)
inlinevirtual

Visit the given context and return a collection of the resultant contexts.

Returns
Zero or more IRenderingContext instances, determined by the outcome of this visit.
Parameters
contextThe rendering context to visit.

Implements CSF.Zpt.Rendering.ContextVisitorBase.

override IRenderingContext [] CSF.Zpt.Tal.TalVisitor.VisitRecursively ( IRenderingContext  context)
inlinevirtual

Visit the given context, as well as its child contexts, and return a collection of the resultant contexts.

This operation performs the same work as Visit, but it then visits all of the resultant contexts, recursively moving down the exposed document tree, visiting each context in turn.

In this implementation, the visit additionally provides error-handling via the TAL on-error attribute.

Returns
Zero or more RenderingContext instances, determined by the outcome of this visit.
Parameters
contextThe rendering context to visit.

Reimplemented from CSF.Zpt.Rendering.ContextVisitorBase.


The documentation for this class was generated from the following file: