C# Класс Akka.Configuration.Hocon.HoconValue

This class represents the root type for a HOCON (Human-Optimized Config Object Notation) configuration object.
Наследование: IMightBeAHoconObject
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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