C# Class Bender.Nodes.Node

Inheritance: NodeBase
Mostra file Open project: mikeobrien/Bender Class Usage Examples

Public Methods

Method Description
CreateArray ( ) : Node
CreateArray ( string name ) : Node
CreateObject ( ) : Node
CreateObject ( string name ) : Node
CreateValue ( ) : Node
CreateValue ( string name ) : Node
CreateValue ( string name, object value ) : Node
CreateValueFrom ( object value ) : Node
Encode ( Stream stream, Encoding encoding = null ) : void
Node ( ) : System
Node ( string name = null, string format = null, INode parent = null, Metadata metadata = null, Action encoder = null ) : System

Protected Methods

Method Description
AddNode ( INode node, bool named, Action modify ) : void
GetName ( ) : string
GetNodeType ( ) : NodeType
GetNodes ( ) : IEnumerable
GetValue ( ) : object
SetName ( string name ) : void
SetNodeType ( NodeType nodeType ) : void
SetValue ( object value ) : void

Method Details

AddNode() protected method

protected AddNode ( INode node, bool named, Action modify ) : void
node INode
named bool
modify Action
return void

CreateArray() public static method

public static CreateArray ( ) : Node
return Node

CreateArray() public static method

public static CreateArray ( string name ) : Node
name string
return Node

CreateObject() public static method

public static CreateObject ( ) : Node
return Node

CreateObject() public static method

public static CreateObject ( string name ) : Node
name string
return Node

CreateValue() public static method

public static CreateValue ( ) : Node
return Node

CreateValue() public static method

public static CreateValue ( string name ) : Node
name string
return Node

CreateValue() public static method

public static CreateValue ( string name, object value ) : Node
name string
value object
return Node

CreateValueFrom() public static method

public static CreateValueFrom ( object value ) : Node
value object
return Node

Encode() public method

public Encode ( Stream stream, Encoding encoding = null ) : void
stream Stream
encoding System.Text.Encoding
return void

GetName() protected method

protected GetName ( ) : string
return string

GetNodeType() protected method

protected GetNodeType ( ) : NodeType
return NodeType

GetNodes() protected method

protected GetNodes ( ) : IEnumerable
return IEnumerable

GetValue() protected method

protected GetValue ( ) : object
return object

Node() public method

public Node ( ) : System
return System

Node() public method

public Node ( string name = null, string format = null, INode parent = null, Metadata metadata = null, Action encoder = null ) : System
name string
format string
parent INode
metadata Metadata
encoder Action
return System

SetName() protected method

protected SetName ( string name ) : void
name string
return void

SetNodeType() protected method

protected SetNodeType ( NodeType nodeType ) : void
nodeType NodeType
return void

SetValue() protected method

protected SetValue ( object value ) : void
value object
return void