ZPT-Sharp  v1.0.0
Zope Page Templates for .NET
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties
CSF.Zpt.MVC.Tales.MvcTalesModel Class Reference
Inheritance diagram for CSF.Zpt.MVC.Tales.MvcTalesModel:
Collaboration diagram for CSF.Zpt.MVC.Tales.MvcTalesModel:

Public Member Functions

override IModel CreateChildModel ()
 Creates and returns a child TalesModel instance. More...
 
 MvcTalesModel (IEvaluatorSelector evaluatorRegistry, NamedObjectWrapper options=null, IExpressionFactory expressionCreator=null, object model=null)
 
 MvcTalesModel (IModel parent, IModel root, IEvaluatorSelector evaluatorRegistry, IExpressionFactory expressionCreator=null, object model=null)
 
- Public Member Functions inherited from CSF.Zpt.Tales.TalesModel
override ExpressionResult Evaluate (string expression, IRenderingContext context)
 Evaluate the specified expression and return the result. More...
 
virtual ExpressionResult Evaluate (Expression talesExpression, IRenderingContext context)
 Evaluate the specified TALES expression and return the result. More...
 
virtual bool TryGetRootObject (string name, IRenderingContext context, out object result)
 Attempts to get a object instance from the root of the current model. More...
 
virtual 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...
 
 TalesModel (IEvaluatorSelector evaluatorRegistry, NamedObjectWrapper options=null, IExpressionFactory expressionCreator=null, object modelObject=null)
 Initializes a new instance of the CSF.Zpt.Tales.TalesModel class. More...
 
 TalesModel (IModel parent, IModel root, IEvaluatorSelector evaluatorRegistry, IExpressionFactory expressionCreator=null, object modelObject=null)
 Initializes a new instance of the CSF.Zpt.Tales.TalesModel class. More...
 
- Public Member Functions inherited from CSF.Zpt.Rendering.Model
virtual 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...
 
virtual 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...
 
virtual void AddRepetitionInfo (IRepetitionInfo info)
 Adds information about a repetition to the current instance. More...
 
virtual void AddError (object error)
 Adds information about an encountered error to the current model instance. More...
 
virtual IModel CreateSiblingModel ()
 Creates and returns a sibling Model instance. More...
 
virtual IDictionary< string,
object > 
GetAllDefinitions ()
 Gets all variable definitions for the current model instance. More...
 
 Model (IModel parent, IModel root, object modelObject=null)
 Initializes a new instance of the CSF.Zpt.Rendering.Model class. More...
 
 Model (NamedObjectWrapper options, object modelObject=null)
 Initializes a new root of the CSF.Zpt.Rendering.Model class. More...
 

Protected Member Functions

override BuiltinContextsContainer GetBuiltinContexts (IRenderingContext context)
 Gets the builtin contexts, associated with the CONTEXTS root path keyword. More...
 
override IDictionary< string,
object > 
GetBuiltinDefinitions ()
 Gets a collection of the current model's built-in definitions. More...
 
override Model CreateTypedSiblingModel ()
 Creates an instance of TalesModel. More...
 
- Protected Member Functions inherited from CSF.Zpt.Rendering.Model
virtual bool TryGetItem (string name, IRenderingContext context, out object result)
 Tries to get a named item from the current instance. More...
 
virtual bool TryRecursivelyGetLocalItem (string name, out object result)
 Tries recursively to get an item from the local scope exposed by the current instance and its parents. More...
 
virtual IEnumerable
< IRepetitionInfo
RecursivelyGetAllRepetitions ()
 Recursively gets all of the IRepetitionInfo instances from the current model and all of its parents. More...
 
virtual void RecursivelyGetAllRepetitions (ref List< IRepetitionInfo > repetitions)
 Recursively gets all of the IRepetitionInfo instances from the current model and all of its parents. More...
 
virtual
RepetitionMetadataCollectionWrapper 
GetRepetitionSummaries ()
 Gets the contextualised repetition summaries. More...
 
virtual NamedObjectWrapper GetKeywordOptions ()
 Gets the keyword options specified upon the current instance. More...
 
virtual IDictionary< string,
object > 
MergeDefinitionsDictionaries (IDictionary< string, object > first, IDictionary< string, object > second)
 Merges two dictionaries which contain variable definitions together. More...
 
virtual IDictionary< string,
object > 
GetAllLocalDefinitions ()
 Gets a dictionary containing all of the local variable definitions. More...
 

Properties

virtual ViewContext ViewContext [get, set]
 
- Properties inherited from CSF.Zpt.Tales.TalesModel
virtual IEvaluatorSelector EvaluatorRegistry [get]
 Gets the evaluator registry. More...
 
- Properties inherited from CSF.Zpt.Rendering.Model
virtual Dictionary< string,
object > 
GlobalDefinitions [get]
 Gets the global definitions. More...
 
virtual Dictionary< string,
object > 
LocalDefinitions [get]
 Gets the local definitions. More...
 
virtual object Error [get]
 Gets information about an error, or a null reference if no error was encountered. More...
 
virtual IModel Parent [get]
 Gets a reference to the parent model (if applicable). More...
 
virtual IModel Root [get]
 Gets a reference to the root model instance in the current hierarchy. More...
 
virtual IRepetitionInfo RepetitionInfo [get]
 Gets the repetition info for the current model instance. More...
 
object ModelObject [get, protected set]
 Gets the model object being rendered. More...
 
static Model Empty [get]
 Gets an empty model/null object. More...
 
- 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...
 

Member Function Documentation

override IModel CSF.Zpt.MVC.Tales.MvcTalesModel.CreateChildModel ( )
inlinevirtual

Creates and returns a child TalesModel instance.

Returns
The child model.

Reimplemented from CSF.Zpt.Tales.TalesModel.

override Model CSF.Zpt.MVC.Tales.MvcTalesModel.CreateTypedSiblingModel ( )
inlineprotectedvirtual

Creates an instance of TalesModel.

Returns
The sibling model.

Reimplemented from CSF.Zpt.Tales.TalesModel.

override BuiltinContextsContainer CSF.Zpt.MVC.Tales.MvcTalesModel.GetBuiltinContexts ( IRenderingContext  context)
inlineprotectedvirtual

Gets the builtin contexts, associated with the CONTEXTS root path keyword.

Returns
The builtin contexts.
Parameters
contextThe current rendering context.

Reimplemented from CSF.Zpt.Tales.TalesModel.

override IDictionary<string, object> CSF.Zpt.MVC.Tales.MvcTalesModel.GetBuiltinDefinitions ( )
inlineprotectedvirtual

Gets a collection of the current model's built-in definitions.

Returns
The built-in definitions.

Reimplemented from CSF.Zpt.Tales.TalesModel.


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