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

Represents an IModel which contains TALES-specific functionality. More...

Inheritance diagram for CSF.Zpt.Tales.ITalesModel:
Collaboration diagram for CSF.Zpt.Tales.ITalesModel:

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...
 
- Public Member Functions inherited from CSF.Zpt.Rendering.IModel
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...
 

Additional Inherited Members

- Properties inherited from CSF.Zpt.Rendering.IModel
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

Represents an IModel which contains TALES-specific functionality.

Member Function Documentation

ExpressionResult CSF.Zpt.Tales.ITalesModel.Evaluate ( Expression  talesExpression,
IRenderingContext  context 
)

Evaluate the specified TALES expression and return the result.

Parameters
talesExpressionThe TALES expression to evaluate.
contextThe 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.

Returns
true, if a root item was found matching the given name , false otherwise.
Parameters
nameThe name of the desired item.
elementThe ZPT element.
resultExposes 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.

Returns
true, if a root item was found matching the given name , false otherwise.
Parameters
nameThe name of the desired item.
contextThe rendering context for which the item search is being performed.
resultExposes the found object if this method returns true. The value is undefined if this method returns false.

Implemented in CSF.Zpt.Tales.TalesModel.


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