C# 클래스 Yaml.Node

Node in the Yaml tree
파일 보기 프로젝트 열기: rs-services/RightGridWindowsImplementation 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
nodetype NodeType
uri string

공개 메소드들

메소드 설명
FromFile ( string filename ) : Node

Parse a Yaml string from a textfile and return a Yaml tree

Info ( ) : Node

Node info returns a YAML node and is also mostly used for debugging the parser. This could be used for traversing the meta-info of another YAML tree

Node ( string uri, NodeType nodetype ) : System

Node Constructor

Parse ( TextReader textreader ) : Node

Parse a Yaml string from a textreader and return a Yaml tree

Parse ( string lines ) : Node

Parse a Yaml string and return a Yaml tree

ToFile ( string filename ) : void

Write a YAML tree to a file using UTF-8 encoding

ToFile ( string filename, Encoding enc ) : void

Write a YAML tree to a file

ToString ( ) : string

The ToString method here, and in all the classses derived from this class, is used mainly for debugging purpose. ToString returns a xml-like textual representation of the objects. It's very useful to see how a Yaml document has been parsed because of the disambiguous representation of this notation.

Write ( ) : string

Return a Yaml string

보호된 메소드들

메소드 설명
Parse ( ParseStream stream ) : Node

Parse function

Parse ( ParseStream stream, bool parseImplicitMappings ) : Node

Internal parse method

Write ( WriteStream stream ) : void

Writes a Yaml tree back to a file or stream

should not be called from outside the parser. This method is only public from inside the Sequence and Mapping Write methods.

메소드 상세

FromFile() 공개 정적인 메소드

Parse a Yaml string from a textfile and return a Yaml tree
public static FromFile ( string filename ) : Node
filename string
리턴 Node

Info() 공개 추상적인 메소드

Node info returns a YAML node and is also mostly used for debugging the parser. This could be used for traversing the meta-info of another YAML tree
public abstract Info ( ) : Node
리턴 Node

Node() 공개 메소드

Node Constructor
public Node ( string uri, NodeType nodetype ) : System
uri string URI of the node
nodetype NodeType The type of node that we want to store
리턴 System

Parse() 보호된 정적인 메소드

Parse function
protected static Parse ( ParseStream stream ) : Node
stream ParseStream
리턴 Node

Parse() 보호된 정적인 메소드

Internal parse method
protected static Parse ( ParseStream stream, bool parseImplicitMappings ) : Node
stream ParseStream
parseImplicitMappings bool /// Avoids ethernal loops while parsing implicit mappings. Implicit mappings are /// not rocognized by a leading character. So while trying to parse the key of /// something we think that could be a mapping, we're sure that if it is a mapping, /// the key of this implicit mapping is not a mapping itself. /// /// NOTE: Implicit mapping still belong to unstable code and require the UNSTABLE and /// IMPLICIT_MAPPINGS preprocessor flags. ///
리턴 Node

Parse() 공개 정적인 메소드

Parse a Yaml string from a textreader and return a Yaml tree
public static Parse ( TextReader textreader ) : Node
textreader TextReader
리턴 Node

Parse() 공개 정적인 메소드

Parse a Yaml string and return a Yaml tree
public static Parse ( string lines ) : Node
lines string
리턴 Node

ToFile() 공개 메소드

Write a YAML tree to a file using UTF-8 encoding
public ToFile ( string filename ) : void
filename string
리턴 void

ToFile() 공개 메소드

Write a YAML tree to a file
public ToFile ( string filename, Encoding enc ) : void
filename string
enc System.Text.Encoding
리턴 void

ToString() 공개 추상적인 메소드

The ToString method here, and in all the classses derived from this class, is used mainly for debugging purpose. ToString returns a xml-like textual representation of the objects. It's very useful to see how a Yaml document has been parsed because of the disambiguous representation of this notation.
public abstract ToString ( ) : string
리턴 string

Write() 공개 메소드

Return a Yaml string
public Write ( ) : string
리턴 string

Write() 보호된 메소드

Writes a Yaml tree back to a file or stream
should not be called from outside the parser. This method is only public from inside the Sequence and Mapping Write methods.
protected Write ( WriteStream stream ) : void
stream WriteStream Were the output data go's
리턴 void

프로퍼티 상세

nodetype 보호되어 있는 프로퍼티

Determines wich node we are talking about
protected NodeType nodetype
리턴 NodeType

uri 보호되어 있는 프로퍼티

The uri given by http://yaml.org/type/
protected string uri
리턴 string