|
override string | ToString () |
| Returns a System.String that represents the current ZptXmlLinqElement. More...
|
|
override bool | Equals (ZptElement other) |
| Determines whether the specified CSF.Zpt.Rendering.ZptElement is equal to the current CSF.Zpt.DocumentProviders.ZptXmlLinqElement. More...
|
|
override int | GetHashCode () |
| Serves as a hash function for a CSF.Zpt.DocumentProviders.ZptXmlLinqElement object. More...
|
|
override IZptElement | ReplaceWith (IZptElement replacement) |
| Replaces the current element in its respective DOM with the given replacement. More...
|
|
override IZptElement[] | ReplaceWith (string content, bool interpretContentAsStructure) |
| Replaces the current element instance with the given content. More...
|
|
override void | ReplaceChildrenWith (string content, bool interpretContentAsStructure) |
| Removes all children of the current element instance and replaces them with the given content. More...
|
|
override IZptElement | InsertBefore (IZptElement existing, IZptElement newChild) |
| Inserts a new child element into the current element's child elements. The new child will be the previous sibling before a given existing child. More...
|
|
override IZptElement | InsertAfter (IZptElement existing, IZptElement newChild) |
| Inserts a new child element into the current element's child elements. The new child will be the next sibling after a given existing child. More...
|
|
override IZptElement | GetParentElement () |
| Gets the element which is the parent of the current instance. More...
|
|
override IZptElement[] | GetChildElements () |
| Gets a collection of the child elements from the current source element. More...
|
|
override IZptAttribute[] | GetAttributes () |
| Gets a collection of the attributes present upon the current element. More...
|
|
override IZptAttribute | GetAttribute (ZptNamespace attributeNamespace, string name) |
| Gets an attribute which matches the given criteria, or a null reference is no matching attribute is found. More...
|
|
override void | SetAttribute (ZptNamespace attributeNamespace, string name, string value) |
| Sets the value of an attribute. More...
|
|
override void | RemoveAttribute (ZptNamespace attributeNamespace, string name) |
| Removes a named attribute. More...
|
|
override IZptElement[] | SearchChildrenByAttribute (ZptNamespace attributeNamespace, string name) |
| Recursively searches the children of the current instance, returning a collection of elements which have an attribute matching the given criteria. More...
|
|
override void | PurgeAttributes (ZptNamespace attributeNamespace) |
| Recursively searches for attributes with a given namespace or prefix and removes them from their parent element. More...
|
|
override void | PurgeElements (ZptNamespace elementNamespace) |
| Recursively searches for elements with a given namespace or prefix and removes them using the Omit behaviour. More...
|
|
override void | AddCommentBefore (string comment) |
| Adds a new comment to the DOM immediately before the current element. More...
|
|
override void | AddCommentInside (string comment) |
| Adds a new comment to the DOM inside the current element as its first child. More...
|
|
override void | AddCommentAfter (string comment) |
| Adds a new comment to the DOM immediately after the current element. More...
|
|
override IZptElement | Clone () |
| Clone this instance into a new Element instance, which may be manipulated without affecting the original. More...
|
|
override IZptElement[] | Omit () |
| Omits the current element, replacing it with its children. More...
|
|
override void | Remove () |
| Removes the current element from the DOM. More...
|
|
override void | RemoveAllChildren () |
| Removes all child elements from the current element. More...
|
|
override bool | IsInNamespace (ZptNamespace nSpace) |
| Determines whether or not the current instance is in the specified namespace. More...
|
|
override bool | IsFromSameDocumentAs (IZptElement other) |
| Determines whether this instance is from same document as the specified element. More...
|
|
override IZptDocument | CreateDocumentFromThisElement () |
| Creates a new IZptDocument which contains only the current element and its children. More...
|
|
| ZptXmlLinqElement (XNode node, ISourceInfo sourceFile, IZptDocument ownerDocument, bool isRoot=false, bool isImported=false) |
| Initializes a new instance of the CSF.Zpt.DocumentProviders.ZptXmlLinqElement class. More...
|
|
ISourceInfo | GetSourceInfo () |
| Gets information about the source of the current element. More...
|
|
override bool | Equals (object obj) |
| Determines whether the specified System.Object is equal to the current CSF.Zpt.Rendering.ZptElement. More...
|
|
virtual bool | Equals (IZptElement obj) |
| Determines whether the specified CSF.Zpt.Rendering.IZptElement is equal to the current CSF.Zpt.Rendering.ZptElement. More...
|
|
virtual IZptElement[] | GetElementChain () |
| Gets an ordered element chain, starting with the current element and including all of its parent elements from closest to furthest ancestors. More...
|
|
virtual void | SetAttribute (string name, string value) |
| Sets the value of an attribute. More...
|
|
virtual void | RemoveAttribute (string name) |
| Removes a named attribute. More...
|
|
virtual IZptElement | SearchAncestorsByAttribute (ZptNamespace attributeNamespace, string name) |
| Recursively searches upwards in the DOM tree, returning the first (closest) ancestor element which has an attribute matching the given criteria. More...
|
|
virtual string | GetFileLocation () |
| Gets the file location (typically a line number) for the current instance. More...
|
|
virtual string | GetEndTagFileLocation () |
| Gets the file location (typically a line number) for the end tag matched with the current instance. More...
|
|
virtual string | GetOriginalContextEndTagLocation () |
| Gets the file location (typically a line number) for the end tag of an 'original context'. More...
|
|
virtual ISourceInfo | GetOriginalContextSourceInfo () |
| Gets information about the source of the current element. More...
|
|
virtual string | GetFullFilePathAndLocation () |
| Gets the full file path and location for the current element. More...
|
|
virtual void | CacheSourceInformationInAttributes () |
| Writes information to the underlying element's attributes recording its source information. More...
|
|
virtual void | MarkAsImported (IZptElement originalElement) |
| Marks the current element as being imported into its parent document (IE: it represents a context switch). More...
|
|
| ZptElement (ISourceInfo sourceFile, bool isRoot, bool isImported, IZptDocument ownerDocument, ISourceInfoFactory sourceInfoCreator=null) |
| Initializes a new instance of the CSF.Zpt.Rendering.ZptElement class. More...
|
|
|
virtual XElement | Node [get] |
| Gets the XML node object wrapped by the current instance. More...
|
|
override string | Name [get] |
| Gets the element name. More...
|
|
override bool | HasParent [get] |
| Gets a value indicating whether this instance has a parent element or not. More...
|
|
override Type | ZptDocumentType [get] |
| Gets a System.Type indicating the type of IZptDocument to which the current instance belongs. More...
|
|
override bool | CanWriteCommentWithoutParent [get] |
| Gets a value indicating whether or not this instance can write a comment node to a node that does not have a parent. More...
|
|
abstract string | Name [get] |
| Gets the element name. More...
|
|
virtual bool | IsRoot [get] |
| Gets a value indicating whether this instance is the root of its parent document. More...
|
|
abstract bool | HasParent [get] |
| Gets a value indicating whether this instance has a parent element or not. More...
|
|
virtual bool | IsImported [get] |
| Gets a value indicating whether this instance represents an element imported from another document tree. More...
|
|
abstract Type | ZptDocumentType [get] |
| Gets a System.Type indicating the type of IZptDocument to which the current instance belongs. More...
|
|
abstract bool | CanWriteCommentWithoutParent [get] |
| Gets a value indicating whether or not this instance can write a comment node to a node that does not have a parent. More...
|
|
virtual IZptDocument | OwnerDocument [get] |
| Gets the IZptDocument instance to which the current instance belongs. More...
|
|
string | Name [get] |
| Gets the element name. More...
|
|
bool | IsRoot [get] |
| Gets a value indicating whether this instance is the root of its parent document. More...
|
|
bool | HasParent [get] |
| Gets a value indicating whether this instance has a parent element or not. More...
|
|
bool | IsImported [get] |
| Gets a value indicating whether this instance represents an element imported from another document tree. More...
|
|
Type | ZptDocumentType [get] |
| Gets a System.Type indicating the type of IZptDocument to which the current instance belongs. More...
|
|
bool | CanWriteCommentWithoutParent [get] |
| Gets a value indicating whether or not this instance can write a comment node to a node that does not have a parent. More...
|
|
IZptDocument | OwnerDocument [get] |
| Gets the IZptDocument instance to which the current instance belongs. More...
|
|
Implementation of ZptElement based on documents parsed using System.Xml.Linq
.