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

Extension methods for the IZptElement type and its subtypes. More...

Static Public Member Functions

static IZptAttribute GetMetalAttribute (this IZptElement element, string attributeName)
 Gets a METAL attribute which matches the given criteria, or a null reference is no matching attribute is found. More...
 
static IZptElement SearchAncestorsByMetalAttribute (this IZptElement element, string attributeName)
 Recursively searches upwards in the DOM tree, returning the first (closest) ancestor element which has a METAL attribute matching the given name. More...
 
static IZptElement[] SearchChildrenByMetalAttribute (this IZptElement element, string attributeName)
 Recursively searches the children of the current instance, returning a collection of elements which have a matching METAL attribute. More...
 
static void PurgeMetalAttributes (this IZptElement element)
 Recursively searches for METAL attributes and removes them from their parent element. More...
 
static void PurgeMetalElements (this IZptElement element)
 Recursively searches for elements in the METAL namespace and removes them from their parent element. More...
 
static IZptElement SearchAncestorsByTalAttribute (this IZptElement element, string attributeName)
 Recursively searches upwards in the DOM tree, returning the first (closest) ancestor element which has a TAL attribute matching the given name. More...
 
static IZptElement[] SearchChildrenByTalAttribute (this IZptElement element, string attributeName)
 Recursively searches the children of the current instance, returning a collection of elements which have a matching TAL attribute. More...
 
static void PurgeTalAttributes (this IZptElement element)
 Recursively searches for TAL attributes and removes them from their parent element. More...
 
static void PurgeTalElements (this IZptElement element)
 Recursively searches for elements in the TAL namespace and removes them from their parent element. More...
 
static void RecursivelyCacheSourceInformationInAttributes (this IZptElement element)
 Recursively calls IZptElement.CacheSourceInformationInAttributes on a given element and every one of its children. More...
 
static void PurgeSourceAnnotationAttributes (this IZptElement element)
 Recursively searches for source annotation attributes and removes them from their parent element. More...
 

Detailed Description

Extension methods for the IZptElement type and its subtypes.

Member Function Documentation

static IZptAttribute CSF.Zpt.Rendering.ElementExtensions.GetMetalAttribute ( this IZptElement  element,
string  attributeName 
)
inlinestatic

Gets a METAL attribute which matches the given criteria, or a null reference is no matching attribute is found.

Returns
The attribute, or a null reference.
Parameters
elementThe element from which to get attributes.
attributeNameThe attribute name.
static void CSF.Zpt.Rendering.ElementExtensions.PurgeMetalAttributes ( this IZptElement  element)
inlinestatic

Recursively searches for METAL attributes and removes them from their parent element.

Parameters
elementThe element from which to perform the purge.
static void CSF.Zpt.Rendering.ElementExtensions.PurgeMetalElements ( this IZptElement  element)
inlinestatic

Recursively searches for elements in the METAL namespace and removes them from their parent element.

Parameters
elementThe element from which to perform the purge.
static void CSF.Zpt.Rendering.ElementExtensions.PurgeSourceAnnotationAttributes ( this IZptElement  element)
inlinestatic

Recursively searches for source annotation attributes and removes them from their parent element.

Parameters
elementThe element from which to perform the purge.
static void CSF.Zpt.Rendering.ElementExtensions.PurgeTalAttributes ( this IZptElement  element)
inlinestatic

Recursively searches for TAL attributes and removes them from their parent element.

Parameters
elementThe element from which to perform the purge.
static void CSF.Zpt.Rendering.ElementExtensions.PurgeTalElements ( this IZptElement  element)
inlinestatic

Recursively searches for elements in the TAL namespace and removes them from their parent element.

Parameters
elementThe element from which to perform the purge.
static void CSF.Zpt.Rendering.ElementExtensions.RecursivelyCacheSourceInformationInAttributes ( this IZptElement  element)
inlinestatic

Recursively calls IZptElement.CacheSourceInformationInAttributes on a given element and every one of its children.

Parameters
elementThe root element upon which to invoke this functionality.
static IZptElement CSF.Zpt.Rendering.ElementExtensions.SearchAncestorsByMetalAttribute ( this IZptElement  element,
string  attributeName 
)
inlinestatic

Recursively searches upwards in the DOM tree, returning the first (closest) ancestor element which has a METAL attribute matching the given name.

Returns
The closest ancestor element, or a null reference if no ancestor was found.
Parameters
elementThe element from which to begin the search.
attributeNameThe attribute name.
static IZptElement CSF.Zpt.Rendering.ElementExtensions.SearchAncestorsByTalAttribute ( this IZptElement  element,
string  attributeName 
)
inlinestatic

Recursively searches upwards in the DOM tree, returning the first (closest) ancestor element which has a TAL attribute matching the given name.

Returns
The closest ancestor element, or a null reference if no ancestor was found.
Parameters
elementThe element from which to begin the search.
attributeNameThe attribute name.
static IZptElement [] CSF.Zpt.Rendering.ElementExtensions.SearchChildrenByMetalAttribute ( this IZptElement  element,
string  attributeName 
)
inlinestatic

Recursively searches the children of the current instance, returning a collection of elements which have a matching METAL attribute.

Returns
The matching child elements.
Parameters
elementThe element from which to perform the search.
attributeNameThe attribute name.
static IZptElement [] CSF.Zpt.Rendering.ElementExtensions.SearchChildrenByTalAttribute ( this IZptElement  element,
string  attributeName 
)
inlinestatic

Recursively searches the children of the current instance, returning a collection of elements which have a matching TAL attribute.

Returns
The matching child elements.
Parameters
elementThe element from which to perform the search.
attributeNameThe attribute name.

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