C# Class Akka.Configuration.Hocon.HoconValue

This class represents the root type for a HOCON (Human-Optimized Config Object Notation) configuration object.
Inheritance: IMightBeAHoconObject
Afficher le fichier Open project: rogeralsing/akka.net Class Usage Examples

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
ConcatString ( ) : string
GetMillisDuration ( bool allowInfinite = true ) : System.TimeSpan
ParsePositiveValue ( string v ) : double
QuoteIfNeeded ( string text ) : string

Method Details

AppendValue() public méthode

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.
Résultat void

AtKey() public méthode

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.
Résultat Config

Clear() public méthode

Clears the list of elements inside this HoconValue.
public Clear ( ) : void
Résultat void

GetArray() public méthode

Retrieves a list of values from this HoconValue.
public GetArray ( ) : IList
Résultat IList

GetBoolean() public méthode

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
Résultat bool

GetBooleanList() public méthode

Retrieves a list of boolean values from this HoconValue.
public GetBooleanList ( ) : IList
Résultat IList

GetByte() public méthode

Retrieves the byte value from this HoconValue.
public GetByte ( ) : byte
Résultat byte

GetByteList() public méthode

Retrieves a list of byte values from this HoconValue.
public GetByteList ( ) : IList
Résultat IList

GetByteSize() public méthode

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

GetChildObject() public méthode

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

GetDecimal() public méthode

Retrieves the decimal value from this HoconValue.
public GetDecimal ( ) : decimal
Résultat decimal

GetDecimalList() public méthode

Retrieves a list of decimal values from this HoconValue.
public GetDecimalList ( ) : IList
Résultat IList

GetDouble() public méthode

Retrieves the double value from this HoconValue.
public GetDouble ( ) : double
Résultat double

GetDoubleList() public méthode

Retrieves a list of double values from this HoconValue.
public GetDoubleList ( ) : IList
Résultat IList

GetFloat() public méthode

Retrieves the float value from this HoconValue.
public GetFloat ( ) : float
Résultat float

GetFloatList() public méthode

Retrieves a list of float values from this HoconValue.
public GetFloatList ( ) : IList
Résultat IList

GetInt() public méthode

Retrieves the integer value from this HoconValue.
public GetInt ( ) : int
Résultat int

GetIntList() public méthode

Retrieves a list of integer values from this HoconValue.
public GetIntList ( ) : IList
Résultat IList

GetLong() public méthode

Retrieves the long value from this HoconValue.
public GetLong ( ) : long
Résultat long

GetLongList() public méthode

Retrieves a list of long values from this HoconValue.
public GetLongList ( ) : IList
Résultat IList

GetObject() public méthode

Retrieves the HoconObject from this HoconValue.
public GetObject ( ) : HoconObject
Résultat HoconObject

GetString() public méthode

Retrieves the string value from this HoconValue.
public GetString ( ) : string
Résultat string

GetStringList() public méthode

Retrieves a list of string values from this HoconValue.
public GetStringList ( ) : IList
Résultat IList

GetTimeSpan() public méthode

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

HoconValue() public méthode

Initializes a new instance of the HoconValue class.
public HoconValue ( ) : System
Résultat System

IsArray() public méthode

Determines whether this HoconValue is an array.
public IsArray ( ) : bool
Résultat bool

IsObject() public méthode

Determines if this HoconValue is a HoconObject.
public IsObject ( ) : bool
Résultat bool

IsString() public méthode

Determines whether all the elements inside this HoconValue are a string.
public IsString ( ) : bool
Résultat bool

NewValue() public méthode

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.
Résultat void

ToString() public méthode

Returns a HOCON string representation of this HoconValue.
public ToString ( ) : string
Résultat string

ToString() public méthode

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