C# Class SecureDelete.FileSearch.ExpressionTree

Inheritance: ICloneable
ファイルを表示 Open project: gratianlup/SecureDelete Class Usage Examples

Public Methods

Method Description
AddNode ( ExpressionNode parent, TreeDirection direction, ExpressionType type, object item ) : void

Adds the node.

AddRoot ( ExpressionType type, object item ) : void

Adds the root node of the tree.

Clone ( ) : object
DestroyParentChildRelationship ( ExpressionNode parent ) : void

Method executed before serialization in order to destory the parent-child relationship

EstablishParentChildRelationship ( ExpressionNode parent ) : void

Method executed after deserialization in order to establish the parent-child relationship

GetNodes ( ExpressionType type ) : List
RemoveChildren ( ExpressionNode parent ) : void
RemoveChildren ( ExpressionNode parent, TreeDirection direction ) : void
RemoveUngrouped ( ExpressionNode parent ) : void

Private Methods

Method Description
GetNodesRecursive ( ExpressionNode node, ExpressionType type ) : List
NewNodeByType ( ExpressionType type, object item ) : ExpressionNode

Creates a new node of the specified type.

OnDeserializedMethod ( StreamingContext context ) : void
OnSerializingMethod ( StreamingContext context ) : void
RemoveUngroupedRecursive ( ExpressionNode parent ) : void

Method Details

AddNode() public method

Adds the node.
public AddNode ( ExpressionNode parent, TreeDirection direction, ExpressionType type, object item ) : void
parent ExpressionNode The parent.
direction TreeDirection The direction.
type ExpressionType The type.
item object The item.
return void

AddRoot() public method

Adds the root node of the tree.
public AddRoot ( ExpressionType type, object item ) : void
type ExpressionType The node type.
item object The item to add to the node.
return void

Clone() public method

public Clone ( ) : object
return object

DestroyParentChildRelationship() public method

Method executed before serialization in order to destory the parent-child relationship
public DestroyParentChildRelationship ( ExpressionNode parent ) : void
parent ExpressionNode
return void

EstablishParentChildRelationship() public method

Method executed after deserialization in order to establish the parent-child relationship
public EstablishParentChildRelationship ( ExpressionNode parent ) : void
parent ExpressionNode
return void

GetNodes() public method

public GetNodes ( ExpressionType type ) : List
type ExpressionType
return List

RemoveChildren() public method

public RemoveChildren ( ExpressionNode parent ) : void
parent ExpressionNode
return void

RemoveChildren() public method

public RemoveChildren ( ExpressionNode parent, TreeDirection direction ) : void
parent ExpressionNode
direction TreeDirection
return void

RemoveUngrouped() public method

public RemoveUngrouped ( ExpressionNode parent ) : void
parent ExpressionNode
return void