ZPT-Sharp  v1.0.0
Zope Page Templates for .NET
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties
CSF.Zpt.Rendering.IModel Interface Reference

A model which represents and carries the state of a ZPT operation. More...

Inheritance diagram for CSF.Zpt.Rendering.IModel:
Collaboration diagram for CSF.Zpt.Rendering.IModel:

Public Member Functions

void AddRepetitionInfo (IRepetitionInfo info)
 Adds information about a repetition to the current instance. More...
 
void AddError (object error)
 Adds information about an encountered error to the current model instance. More...
 
IModel CreateChildModel ()
 Creates and returns a child IModel instance. More...
 
IModel CreateSiblingModel ()
 Creates and returns a sibling IModel instance. More...
 
ExpressionResult Evaluate (string expression, IRenderingContext context)
 Evaluate the specified expression and return the result. More...
 
IDictionary< string, object > GetAllDefinitions ()
 Gets all variable definitions for the current model instance. More...
 
- Public Member Functions inherited from CSF.Zpt.Rendering.IModelValueStore
void AddLocal (string name, object value)
 Adds a new item to the current local model, identified by a given name and containing a given value. More...
 
void AddGlobal (string name, object value)
 Adds a new item to the current local model, identified by a given name and containing a given value. More...
 

Properties

object Error [get]
 Gets information about an error, or a null reference if no error was encountered. More...
 
IModel Parent [get]
 Gets a reference to the parent model (if applicable). More...
 

Detailed Description

A model which represents and carries the state of a ZPT operation.

Member Function Documentation

void CSF.Zpt.Rendering.IModel.AddError ( object  error)

Adds information about an encountered error to the current model instance.

Parameters
errorError.

Implemented in CSF.Zpt.Rendering.Model.

void CSF.Zpt.Rendering.IModel.AddRepetitionInfo ( IRepetitionInfo  info)

Adds information about a repetition to the current instance.

Parameters
infoThe repetition information.

Implemented in CSF.Zpt.Rendering.Model.

IModel CSF.Zpt.Rendering.IModel.CreateChildModel ( )

Creates and returns a child IModel instance.

Returns
The child model.

Implemented in CSF.Zpt.Rendering.Model, CSF.Zpt.MVC.Tales.MvcTalesModel, and CSF.Zpt.Tales.TalesModel.

IModel CSF.Zpt.Rendering.IModel.CreateSiblingModel ( )

Creates and returns a sibling IModel instance.

Returns
The sibling model.

Implemented in CSF.Zpt.Rendering.Model.

ExpressionResult CSF.Zpt.Rendering.IModel.Evaluate ( string  expression,
IRenderingContext  context 
)

Evaluate the specified expression and return the result.

Parameters
expressionThe expression to evaluate.
contextThe rendering context for which we are evaluating a result.

Implemented in CSF.Zpt.Rendering.Model, and CSF.Zpt.Tales.TalesModel.

IDictionary<string,object> CSF.Zpt.Rendering.IModel.GetAllDefinitions ( )

Gets all variable definitions for the current model instance.

Returns
The variable definitions.

Implemented in CSF.Zpt.Rendering.Model.

Property Documentation

object CSF.Zpt.Rendering.IModel.Error
get

Gets information about an error, or a null reference if no error was encountered.

The error.

IModel CSF.Zpt.Rendering.IModel.Parent
get

Gets a reference to the parent model (if applicable).

The parent.


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