C# 클래스 Akka.Configuration.Hocon.HoconValue

This class represents the root type for a HOCON (Human-Optimized Config Object Notation) configuration object.
상속: IMightBeAHoconObject
파일 보기 프로젝트 열기: rogeralsing/akka.net 1 사용 예제들

공개 메소드들

메소드 설명
AppendValue ( IHoconElement value ) : void

Adds the given element to the list of elements inside this HoconValue.

AtKey ( string key ) : Config

Wraps this HoconValue into a new Config object at the specified key.

Clear ( ) : void

Clears the list of elements inside this HoconValue.

GetArray ( ) : IList

Retrieves a list of values from this HoconValue.

GetBoolean ( ) : bool

Retrieves the boolean value from this HoconValue.

GetBooleanList ( ) : IList

Retrieves a list of boolean values from this HoconValue.

GetByte ( ) : byte

Retrieves the byte value from this HoconValue.

GetByteList ( ) : IList

Retrieves a list of byte values from this HoconValue.

GetByteSize ( ) : long?

Retrieves the long value, optionally suffixed with a 'b', from this HoconValue.

GetChildObject ( string key ) : HoconValue

Retrieves the child object located at the given key.

GetDecimal ( ) : decimal

Retrieves the decimal value from this HoconValue.

GetDecimalList ( ) : IList

Retrieves a list of decimal values from this HoconValue.

GetDouble ( ) : double

Retrieves the double value from this HoconValue.

GetDoubleList ( ) : IList

Retrieves a list of double values from this HoconValue.

GetFloat ( ) : float

Retrieves the float value from this HoconValue.

GetFloatList ( ) : IList

Retrieves a list of float values from this HoconValue.

GetInt ( ) : int

Retrieves the integer value from this HoconValue.

GetIntList ( ) : IList

Retrieves a list of integer values from this HoconValue.

GetLong ( ) : long

Retrieves the long value from this HoconValue.

GetLongList ( ) : IList

Retrieves a list of long values from this HoconValue.

GetObject ( ) : HoconObject

Retrieves the HoconObject from this HoconValue.

GetString ( ) : string

Retrieves the string value from this HoconValue.

GetStringList ( ) : IList

Retrieves a list of string values from this HoconValue.

GetTimeSpan ( bool allowInfinite = true ) : System.TimeSpan

Retrieves the time span value from this HoconValue.

HoconValue ( ) : System

Initializes a new instance of the HoconValue class.

IsArray ( ) : bool

Determines whether this HoconValue is an array.

IsObject ( ) : bool

Determines if this HoconValue is a HoconObject.

IsString ( ) : bool

Determines whether all the elements inside this HoconValue are a string.

NewValue ( IHoconElement value ) : void

Creates a fresh list of elements inside this HoconValue and adds the given value to the list.

ToString ( ) : string

Returns a HOCON string representation of this HoconValue.

ToString ( int indent ) : string

Returns a HOCON string representation of this HoconValue.

비공개 메소드들

메소드 설명
ConcatString ( ) : string
GetMillisDuration ( bool allowInfinite = true ) : System.TimeSpan
ParsePositiveValue ( string v ) : double
QuoteIfNeeded ( string text ) : string

메소드 상세

AppendValue() 공개 메소드

Adds the given element to the list of elements inside this HoconValue.
public AppendValue ( IHoconElement value ) : void
value IHoconElement The element to add to the list.
리턴 void

AtKey() 공개 메소드

Wraps this HoconValue into a new Config object at the specified key.
public AtKey ( string key ) : Config
key string The key designated to be the new root element.
리턴 Config

Clear() 공개 메소드

Clears the list of elements inside this HoconValue.
public Clear ( ) : void
리턴 void

GetArray() 공개 메소드

Retrieves a list of values from this HoconValue.
public GetArray ( ) : IList
리턴 IList

GetBoolean() 공개 메소드

Retrieves the boolean value from this HoconValue.
/// This exception occurs when the doesn't /// conform to the standard boolean values: "on", "off", "true", or "false" ///
public GetBoolean ( ) : bool
리턴 bool

GetBooleanList() 공개 메소드

Retrieves a list of boolean values from this HoconValue.
public GetBooleanList ( ) : IList
리턴 IList

GetByte() 공개 메소드

Retrieves the byte value from this HoconValue.
public GetByte ( ) : byte
리턴 byte

GetByteList() 공개 메소드

Retrieves a list of byte values from this HoconValue.
public GetByteList ( ) : IList
리턴 IList

GetByteSize() 공개 메소드

Retrieves the long value, optionally suffixed with a 'b', from this HoconValue.
public GetByteSize ( ) : long?
리턴 long?

GetChildObject() 공개 메소드

Retrieves the child object located at the given key.
public GetChildObject ( string key ) : HoconValue
key string The key used to retrieve the child object.
리턴 HoconValue

GetDecimal() 공개 메소드

Retrieves the decimal value from this HoconValue.
public GetDecimal ( ) : decimal
리턴 decimal

GetDecimalList() 공개 메소드

Retrieves a list of decimal values from this HoconValue.
public GetDecimalList ( ) : IList
리턴 IList

GetDouble() 공개 메소드

Retrieves the double value from this HoconValue.
public GetDouble ( ) : double
리턴 double

GetDoubleList() 공개 메소드

Retrieves a list of double values from this HoconValue.
public GetDoubleList ( ) : IList
리턴 IList

GetFloat() 공개 메소드

Retrieves the float value from this HoconValue.
public GetFloat ( ) : float
리턴 float

GetFloatList() 공개 메소드

Retrieves a list of float values from this HoconValue.
public GetFloatList ( ) : IList
리턴 IList

GetInt() 공개 메소드

Retrieves the integer value from this HoconValue.
public GetInt ( ) : int
리턴 int

GetIntList() 공개 메소드

Retrieves a list of integer values from this HoconValue.
public GetIntList ( ) : IList
리턴 IList

GetLong() 공개 메소드

Retrieves the long value from this HoconValue.
public GetLong ( ) : long
리턴 long

GetLongList() 공개 메소드

Retrieves a list of long values from this HoconValue.
public GetLongList ( ) : IList
리턴 IList

GetObject() 공개 메소드

Retrieves the HoconObject from this HoconValue.
public GetObject ( ) : HoconObject
리턴 HoconObject

GetString() 공개 메소드

Retrieves the string value from this HoconValue.
public GetString ( ) : string
리턴 string

GetStringList() 공개 메소드

Retrieves a list of string values from this HoconValue.
public GetStringList ( ) : IList
리턴 IList

GetTimeSpan() 공개 메소드

Retrieves the time span value from this HoconValue.
public GetTimeSpan ( bool allowInfinite = true ) : System.TimeSpan
allowInfinite bool A flag used to set inifinite durations.
리턴 System.TimeSpan

HoconValue() 공개 메소드

Initializes a new instance of the HoconValue class.
public HoconValue ( ) : System
리턴 System

IsArray() 공개 메소드

Determines whether this HoconValue is an array.
public IsArray ( ) : bool
리턴 bool

IsObject() 공개 메소드

Determines if this HoconValue is a HoconObject.
public IsObject ( ) : bool
리턴 bool

IsString() 공개 메소드

Determines whether all the elements inside this HoconValue are a string.
public IsString ( ) : bool
리턴 bool

NewValue() 공개 메소드

Creates a fresh list of elements inside this HoconValue and adds the given value to the list.
public NewValue ( IHoconElement value ) : void
value IHoconElement The element to add to the list.
리턴 void

ToString() 공개 메소드

Returns a HOCON string representation of this HoconValue.
public ToString ( ) : string
리턴 string

ToString() 공개 메소드

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