C# Class Bender.Nodes.JsonNode

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

Public Methods

Method Description
Encode ( Stream stream, Encoding encoding = null ) : void
JsonNode ( NodeType type, Options options ) : System
JsonNode ( Stream stream, Encoding encoding = null ) : System
JsonNode ( byte bytes, Encoding encoding = null ) : System
JsonNode ( string json ) : 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

Private Methods

Method Description
GetElementType ( NodeType type ) : ElementType
JsonNode ( JElement element, JsonNode parent ) : System

Method Details

AddNode() protected method

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

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

JsonNode() public method

public JsonNode ( NodeType type, Options options ) : System
type NodeType
options Bender.Configuration.Options
return System

JsonNode() public method

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

JsonNode() public method

public JsonNode ( byte bytes, Encoding encoding = null ) : System
bytes byte
encoding System.Text.Encoding
return System

JsonNode() public method

public JsonNode ( string json ) : System
json string
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