ProfigPath is the core of functionality in Profig. Profig extends from it for the root path and is used for looking up deeper paths as well.
ProfigPath is the core of functionality in Profig. Profig extends from it for the root path and is used for looking up deeper paths as well.
- Companion
- object
Value members
Concrete methods
Look up a deeper path below the current path.
Look up a deeper path below the current path.
- Returns
ProfigPath
Returns a Json representation of this path. Works similar to get()
, except will return an empty Json object if
there is nothing at this level.
Returns a Json representation of this path. Works similar to get()
, except will return an empty Json object if
there is nothing at this level.
- Returns
Json
Loads this path out as the defined type T
.
Loads this path out as the defined type T
.
- Type Params
- T
the type to represent the current path
- Returns
T
Loads this path out as the defined type T
. If no value is set for this path, the default will be used.
Loads this path out as the defined type T
. If no value is set for this path, the default will be used.
- Type Params
- T
the type to represent the current path
- Value Params
- default
the default to be used if this path is empty
- Returns
T
Returns a Json representation of this path if there is anything defined at this level.
Returns a Json representation of this path if there is anything defined at this level.
- Returns
Option[Json]
Convenience functionality similar to as
but returns an option if set.
Convenience functionality similar to as
but returns an option if set.
- Type Params
- T
the type to represent the current path
- Returns
T
Removes a field from this path.
Removes a field from this path.
- Value Params
- field
the field below this path to remove
Inherited methods
- Inherited from
- ProfigPathPlatform
- Inherited from
- ProfigPathPlatform
- Inherited from
- ProfigPathPlatform