ExpressionNode Class

Definition

Base node class, cannot be instantiated

public abstract class ExpressionNode
type ExpressionNode = class
Public MustInherit Class ExpressionNode
Inheritance
ExpressionNode
Derived

Constructors

ExpressionNode()

Properties

LastEvaluationResult
Tag

Node's Tag

Type

Type of the Node (read-only)

TypeClass

Node's TypeClass

Methods

ConstructNode(Object)
ConvertFromFilterNode(FilterNode)
ConvertFromFilterNode(FilterNode, Type)
ConvertFromString(String, String)

Converts string to an object of specified type. Type must be supported. UnsupportedTypeException thrown otherwise. Catches FormatException and throws TypeConversionException.

ConvertToFilterNode()
ConvertToIntWithCheck(String)

Converts string to integer. Catches FormatException and throws TypeConversionException.

ConvertToString(Object)

Converts an object to its string representation understandable by ConvertFromString

DeepClone()

Creates a deep clone of the current expresion. The evaluation results are copied by reference, not by value.

Deserialize(String)

Deserialize from string - creates XmlReader and calls actual deserializer

Deserialize(XmlReader)

Static method - provides generic way for deserializing nodes calls to virtual method DeserializeProperties to read properties of particular node objectTypeName

DeserializeProperties(XmlReader, Boolean)

Virtual method for children classes to deserialize thier properties

DeserializeResult(XmlReader)

Deserializes Last Result

DeserializeWithResult(String)

Deserialize from string - creates XmlReader and calls actual deserializer. The ExpressionNode will contail the result of the evaluation for the particular target that has generated this serialized version of the node.

DoConvertToFilterNode()
DoEnumAttributes(List<String>)

Actual tree enumerator

EnumChildren()

Enumerates Children of the Node

EqualProperties(Object)

virtual method for descendants to implement type specific comparison

Equals(Object)

Overriden Equals to support value comparison Inheritants implement EqualProperties method for type sepcific comparison

Evaluate(FacetEvaluationContext)

Evaluates the node (tree) using supplied Management Facet context

Evaluate(FacetEvaluationContext, Boolean)

Evaluates the node (tree) using supplied Management Facet context

GetHashCode()

Overriden to support overriden Equals

GetResult()

Result of the latest Evaluation

GetResultString()

Result of the latest Evaluation as a String

MatchType<T>(String)

Static method - provides generic way of obtaining enum types from their string names

MoveToElementWithCheck(XmlReader, String)

Moves to the node with specified type and name (if supplied)

Parse(String)

Parses input string into ExpressionNode

Parse(String, Type)

Parses input string into ExpressionNode and verifies against given Facet

ReadElementWithCheck(XmlReader, String)

Reads and verifies named element in its entirety (Element - Text - EndElement)

ReadEndElement(XmlReader)

Reads and verifies instance specific end node element

ReadNodeWithCheck(XmlReader, String[])

Reads and veirifies specified ExpressionNode properties. Stops after reading the last requested element. Requested properties must be listed in the order they appear in the stream.

ReadSimpleNodeWithCheck(XmlReader, ExpressionNodeType, String[])

Reads and verifies simple (with no children) ExpressionNode in its entirety, including end element. Requested properties must be listed in the order they appear in the stream.

ReadWithCheck(XmlReader, XmlNodeType, String)

Reads the next xml node and verifies it has expected type and name (if supplied)

ResolveEnum(String, String)

Constructs Enum object from its string representation

Serialize(XmlWriter)

Base serialization routine - creates start and end elements calls to virtual method SerializeProperties to output properties of particular node objectTypeName

SerializeNode(ExpressionNode)

Serializes given Node to a string

SerializeNodeWithResult(ExpressionNode)

Serializes given Node to a string

SerializeProperties(XmlWriter, Boolean)

Virtual method for children classes to serialize thier properties

SerializeResult(XmlWriter)

Includes Last Result into serialization output

SetFilterNodeCompatible(Boolean)
SetHasScript(Boolean)
SetNameConditionType(NameConditionType)
SetNodeType(ExpressionNodeType)
SetObjectName(String)
SetProperties()

Sets class properties (HasScript, NameConditionType, ...)

SetTypeClass(TypeClass)
ToString()

Represents Expression as a string in T-SQL like syntax

ToStringForDisplay()

A special method to display some simple node in the UI in simplified form, which cannot always be parsed back

ToStringForUrn()

Represents Expression as a string in T-SQL like syntax, which can be used in URN

Applies to