ZPT-Sharp
v1.0.0
Zope Page Templates for .NET
|
Represents the object model, presented to a IZptDocument when it is rendered. More...
Public Member Functions | |
virtual IRenderingContext[] | GetChildContexts () |
Creates and returns a collection of child contexts, from the current instance. More... | |
virtual IRenderingContext | CreateSiblingContext (IZptElement element, bool cloneAttributes=false) |
Creates and returns a new sibling rendering context. More... | |
virtual IZptAttribute | GetAttribute (ZptNamespace nspace, string attributeName) |
Gets an attribute matching the given namespace and attribute name. More... | |
virtual OriginalAttributeValuesCollection | GetOriginalAttributes () |
Gets the original attributes present upon the element wrapped by the current instance. More... | |
virtual void | CopyTo (IModelValueContainer container) |
Copies the state of the current instance to a model value container. More... | |
RenderingContext (IModel metalContext, IModel talContext, IZptElement element, IRenderingSettings options, string sourceAnnotationRoot=null) | |
Initializes a new instance of the CSF.Zpt.Rendering.RenderingContext class. More... | |
Protected Member Functions | |
RenderingContext () | |
Parameterless constructor for testing use only. More... | |
Properties | |
virtual IModel | MetalModel [get] |
Gets the object model available to the METAL environment. More... | |
virtual IModel | TalModel [get] |
Gets the object model available to the TAL environment. More... | |
virtual IZptElement | Element [get] |
Gets the ZPT element. More... | |
virtual IRenderingSettings | RenderingOptions [get] |
Gets the rendering options. More... | |
virtual string | SourceAnnotationRootPath [get] |
Gets the 'virtual' root path for the purpose of source annotation comments. More... | |
virtual IEnumerable < IZptAttribute > | OriginalAttributes [get] |
Gets the original attributes for the Element contained within the current instance. More... | |
![]() | |
new IModel | MetalModel [get] |
Gets the object model available to the METAL environment. More... | |
new IModel | TalModel [get] |
Gets the object model available to the TAL environment. More... | |
IZptElement | Element [get] |
Gets the ZPT element. More... | |
IRenderingSettings | RenderingOptions [get] |
Gets the rendering options. More... | |
string | SourceAnnotationRootPath [get] |
Gets the 'virtual' root path for the purpose of source annotation comments. More... | |
![]() | |
IModelValueStore | MetalModel [get] |
Exposes access to the METAL model instance, for addition of data. More... | |
IModelValueStore | TalModel [get] |
Exposes access to the TAL model instance, for addition of data. More... | |
Represents the object model, presented to a IZptDocument when it is rendered.
|
inlineprotected |
Parameterless constructor for testing use only.
|
inline |
Initializes a new instance of the CSF.Zpt.Rendering.RenderingContext class.
metalContext | The METAL context. |
talContext | The TAL context. |
element | The ZPT element for which this context is created. |
options | The rendering options. |
sourceAnnotationRoot | The source annotation root path. |
|
inlinevirtual |
Copies the state of the current instance to a model value container.
container | The container. |
Implements CSF.Zpt.Rendering.IRenderingContext.
|
inlinevirtual |
Creates and returns a new sibling rendering context.
element | The ZPT element for which the new context is to be created. |
cloneAttributes | A value indicating whether or not the element's attributes should be cloned or not. |
Implements CSF.Zpt.Rendering.IRenderingContext.
|
inlinevirtual |
Gets an attribute matching the given namespace and attribute name.
null
reference if no attribute is found.nspace | The attribute namespace. |
attributeName | The attribute name. |
Implements CSF.Zpt.Rendering.IRenderingContext.
|
inlinevirtual |
Creates and returns a collection of child contexts, from the current instance.
Implements CSF.Zpt.Rendering.IRenderingContext.
|
inlinevirtual |
Gets the original attributes present upon the element wrapped by the current instance.
Implements CSF.Zpt.Rendering.IRenderingContext.
|
get |
Gets the ZPT element.
The element.
|
get |
Gets the object model available to the METAL environment.
The METAL model.
|
getprotected |
Gets the original attributes for the Element contained within the current instance.
The original attributes.
|
get |
Gets the rendering options.
The rendering options.
|
get |
Gets the 'virtual' root path for the purpose of source annotation comments.
The source annotation root path.
|
get |
Gets the object model available to the TAL environment.
The TAL model.