Click or drag to resize

TemplateNode Class

Class representation of a Node that is parsed from a Template's text.
Inheritance Hierarchy
SystemObject
  NetQuarryTemplateNode

Namespace:  NetQuarry
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public class TemplateNode

The TemplateNode type exposes the following members.

Constructors
  NameDescription
Public methodTemplateNode(String, Boolean)
Standard constructor.
Public methodTemplateNode(String, Boolean, TemplateNodeType)
Full constructor.
Top
Properties
  NameDescription
Public propertyCharNumber
Gets/sets the character number in the LineNumber within the template on which the node text starts.
Public propertyFieldKey
Gets the Key referenced by this node. This is generally only meaningful on nodes where IsFieldReference is true. One exception to this is for Template nodes where the FieldKey is the node's inner template name.
Public propertyIsFieldReference
Gets whether or not this node is a field reference that requires resolution.
Public propertyLineNumber
Gets/sets the line number within the template on which the node text starts. The CharNumber identifies the starting character within that line.
Public propertyNameValues
Gets any name/value pairs associated with this node. Currently this applies to Template nodes only. When applying an inner template replacement on a template, the inner template is expanded using the outer template's name/value pairs PLUS any note-specific name/value pairs (with the node-specific values taking precedence).
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodParse
Parse this node. Currently only applies to Template nodes which require parsing to extract template name and possible name/value pairs.
Public methodReplace
Replaces the content in the node with the text required.
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
Fields
  NameDescription
Public fieldIsEscaped
Determines if the content to be replaced in the node is assumed to have already been escaped or not. If true, no further escapement should be performed, if false, the content should be escaped for HTML prior to use. A more accurate name for this property might have been IsAlreadyEscaped
Public fieldStatic memberMarkerPrefixChars
Public fieldMarkerText
The marker text that the Node references. Typically this is a field key with optional leading flag character.
Public fieldNodeType
The Node type.
Public fieldText
Text in the node.
Top
Extension Methods
  NameDescription
Public Extension MethodEqualValue
Determines if the object value is equal to another object. If the two objects are null, then this returns true. There is special handling for guid comparisons (since a guid could be a string formatted in up to 3 different ways). If the special guid handling is not performed, then the object.Equals method is used.
(Defined by EAPUtil.)
Top
See Also