C# Class Akka.Configuration.Hocon.HoconObject

Inheritance: IHoconElement
ファイルを表示 Open project: rogeralsing/akka.net Class Usage Examples

Private Properties

Property Type Description
QuoteIfNeeded string

Public Methods

Method Description
GetArray ( ) : IList

Retrieves a list of elements associated with this element.

GetKey ( string key ) : HoconValue

Retrieves the value associated with the supplied key.

GetOrCreateKey ( string key ) : HoconValue

Retrieves the value associated with the supplied key. If the supplied key is not found, then one is created with a blank value.

GetString ( ) : string

Retrieves the string representation of this element.

HoconObject ( ) : System

Initializes a new instance of the HoconObject class.

IsArray ( ) : bool

Determines whether this element is an array.

IsString ( ) : bool

Determines whether this element is a string.

Merge ( HoconObject other ) : void

Merges the specified object into this instance.

ToString ( ) : string

Returns a HOCON string representation of this element.

ToString ( int indent ) : string

Returns a HOCON string representation of this element.

Private Methods

Method Description
QuoteIfNeeded ( string text ) : string

Method Details

GetArray() public method

Retrieves a list of elements associated with this element.
/// This element is an object. It is not an array. /// Therefore this method will throw an exception. ///
public GetArray ( ) : IList
return IList

GetKey() public method

Retrieves the value associated with the supplied key.
public GetKey ( string key ) : HoconValue
key string The key associated with the value to retrieve.
return HoconValue

GetOrCreateKey() public method

Retrieves the value associated with the supplied key. If the supplied key is not found, then one is created with a blank value.
public GetOrCreateKey ( string key ) : HoconValue
key string The key associated with the value to retrieve.
return HoconValue

GetString() public method

Retrieves the string representation of this element.
/// This element is an object. It is not a string. /// Therefore this method will throw an exception. ///
public GetString ( ) : string
return string

HoconObject() public method

Initializes a new instance of the HoconObject class.
public HoconObject ( ) : System
return System

IsArray() public method

Determines whether this element is an array.
public IsArray ( ) : bool
return bool

IsString() public method

Determines whether this element is a string.
public IsString ( ) : bool
return bool

Merge() public method

Merges the specified object into this instance.
public Merge ( HoconObject other ) : void
other HoconObject The object to merge into this instance.
return void

ToString() public method

Returns a HOCON string representation of this element.
public ToString ( ) : string
return string

ToString() public method

Returns a HOCON string representation of this element.
public ToString ( int indent ) : string
indent int The number of spaces to indent the string.
return string