ZPT-Sharp
v1.0.0
Zope Page Templates for .NET
|
Represents an IModel which contains TALES-specific functionality. More...
Public Member Functions | |
ExpressionResult | Evaluate (Expression talesExpression, IRenderingContext context) |
Evaluate the specified TALES expression and return the result. More... | |
bool | TryGetRootObject (string name, IRenderingContext context, out object result) |
Attempts to get a object instance from the root of the current model. More... | |
bool | TryGetLocalRootObject (string name, IZptElement element, out object result) |
Attempts to get a object instance from the root of the current model, but only searches local variable definitions. More... | |
![]() | |
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... | |
Additional Inherited Members | |
![]() | |
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... | |
Represents an IModel which contains TALES-specific functionality.
ExpressionResult CSF.Zpt.Tales.ITalesModel.Evaluate | ( | Expression | talesExpression, |
IRenderingContext | context | ||
) |
Evaluate the specified TALES expression and return the result.
talesExpression | The TALES expression to evaluate. |
context | The rendering context for which we are evaluating a result. |
Implemented in CSF.Zpt.Tales.TalesModel.
bool CSF.Zpt.Tales.ITalesModel.TryGetLocalRootObject | ( | string | name, |
IZptElement | element, | ||
out object | result | ||
) |
Attempts to get a object instance from the root of the current model, but only searches local variable definitions.
true
, if a root item was found matching the given name , false
otherwise. name | The name of the desired item. |
element | The ZPT element. |
result | Exposes the found object if this method returns true . The value is undefined if this method returns false . |
Implemented in CSF.Zpt.Tales.TalesModel.
bool CSF.Zpt.Tales.ITalesModel.TryGetRootObject | ( | string | name, |
IRenderingContext | context, | ||
out object | result | ||
) |
Attempts to get a object instance from the root of the current model.
true
, if a root item was found matching the given name , false
otherwise. name | The name of the desired item. |
context | The rendering context for which the item search is being performed. |
result | Exposes the found object if this method returns true . The value is undefined if this method returns false . |
Implemented in CSF.Zpt.Tales.TalesModel.