ZPT-Sharp
v1.0.0
Zope Page Templates for .NET
|
A model which represents and carries the state of a ZPT operation. More...
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... | |
![]() | |
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... | |
A model which represents and carries the state of a ZPT operation.
void CSF.Zpt.Rendering.IModel.AddError | ( | object | error | ) |
Adds information about an encountered error to the current model instance.
error | Error. |
Implemented in CSF.Zpt.Rendering.Model.
void CSF.Zpt.Rendering.IModel.AddRepetitionInfo | ( | IRepetitionInfo | info | ) |
Adds information about a repetition to the current instance.
info | The repetition information. |
Implemented in CSF.Zpt.Rendering.Model.
IModel CSF.Zpt.Rendering.IModel.CreateChildModel | ( | ) |
Creates and returns a child IModel instance.
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.
Implemented in CSF.Zpt.Rendering.Model.
ExpressionResult CSF.Zpt.Rendering.IModel.Evaluate | ( | string | expression, |
IRenderingContext | context | ||
) |
Evaluate the specified expression and return the result.
expression | The expression to evaluate. |
context | The 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.
Implemented in CSF.Zpt.Rendering.Model.
|
get |
Gets information about an error, or a null
reference if no error was encountered.
The error.
|
get |
Gets a reference to the parent model (if applicable).
The parent.