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

Encapsulates the TALEs built-in variable names. More...

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

Public Member Functions

virtual bool HandleTalesPath (string pathFragment, out object result, IRenderingContext currentContext)
 Gets a built-in object by name (a TALES path fragment). More...
 
 BuiltinContextsContainer (NamedObjectWrapper options, RepetitionMetadataCollectionWrapper repeat, Lazy< OriginalAttributeValuesCollection > attrs, ITemplateFileFactory templateFileFactory, object model=null)
 Initializes a new instance of the CSF.Zpt.Tales.BuiltinContextsContainer class. More...
 

Properties

object Nothing [get]
 Gets the 'nothing' object instance (a null reference). More...
 
object Default [get]
 Gets the 'default' object instance (equal to ZptConstants.CancellationToken). More...
 
object Model [get]
 Gets the model being rendered. More...
 
NamedObjectWrapper Options [get]
 Gets the template keyword options. More...
 
RepetitionMetadataCollectionWrapper Repeat [get]
 Gets the repeat variables. More...
 
OriginalAttributeValuesCollection Attrs [get]
 Gets the original attributes from the current ZptElement for which this instance was created. More...
 

Detailed Description

Encapsulates the TALEs built-in variable names.

Constructor & Destructor Documentation

CSF.Zpt.Tales.BuiltinContextsContainer.BuiltinContextsContainer ( NamedObjectWrapper  options,
RepetitionMetadataCollectionWrapper  repeat,
Lazy< OriginalAttributeValuesCollection attrs,
ITemplateFileFactory  templateFileFactory,
object  model = null 
)
inline

Initializes a new instance of the CSF.Zpt.Tales.BuiltinContextsContainer class.

Parameters
optionsOptions.
repeatRepeat.
attrsAttrs.
templateFileFactoryA template-file factory.
modelThe model being rendered.

Member Function Documentation

virtual bool CSF.Zpt.Tales.BuiltinContextsContainer.HandleTalesPath ( string  pathFragment,
out object  result,
IRenderingContext  currentContext 
)
inlinevirtual

Gets a built-in object by name (a TALES path fragment).

Returns
true if the path traversal was a success; false otherwise.
Parameters
pathFragmentThe path fragment.
resultExposes the result if the traversal was a success
currentContextGets the current rendering context.

Implements CSF.Zpt.Tales.ITalesPathHandler.

Reimplemented in CSF.Zpt.MVC.Tales.MvcContextsContainer.

Property Documentation

OriginalAttributeValuesCollection CSF.Zpt.Tales.BuiltinContextsContainer.Attrs
get

Gets the original attributes from the current ZptElement for which this instance was created.

The attributes.

object CSF.Zpt.Tales.BuiltinContextsContainer.Default
get

Gets the 'default' object instance (equal to ZptConstants.CancellationToken).

The default object.

object CSF.Zpt.Tales.BuiltinContextsContainer.Model
get

Gets the model being rendered.

The model.

object CSF.Zpt.Tales.BuiltinContextsContainer.Nothing
get

Gets the 'nothing' object instance (a null reference).

The nothing object.

NamedObjectWrapper CSF.Zpt.Tales.BuiltinContextsContainer.Options
get

Gets the template keyword options.

The options.

RepetitionMetadataCollectionWrapper CSF.Zpt.Tales.BuiltinContextsContainer.Repeat
get

Gets the repeat variables.

The repeat.


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