case class SimpleConfigCursor(value: ConfigValue, pathElems: List[String]) extends ConfigCursor with Product with Serializable
A simple ConfigCursor providing no extra operations.
- Alphabetic
- By Inheritance
- SimpleConfigCursor
- Serializable
- Serializable
- Product
- Equals
- ConfigCursor
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new SimpleConfigCursor(value: ConfigValue, pathElems: List[String])
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
asCollectionCursor: Either[ConfigReaderFailures, Either[ConfigListCursor, ConfigObjectCursor]]
Casts this cursor as either a
ConfigListCursoror aConfigObjectCursor.Casts this cursor as either a
ConfigListCursoror aConfigObjectCursor.- returns
a
Rightwith this cursor as a list or object cursor if the cast can be done,Leftwith a list of failures otherwise.
- Definition Classes
- ConfigCursor
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
asList: Either[ConfigReaderFailures, List[ConfigCursor]]
Casts this cursor to a list of cursors.
Casts this cursor to a list of cursors.
- returns
a
Rightwith the list pointed to by this cursor if the cast can be done,Leftwith a list of failures otherwise.
- Definition Classes
- ConfigCursor
-
def
asListCursor: Either[ConfigReaderFailures, ConfigListCursor]
Casts this cursor to a
ConfigListCursor.Casts this cursor to a
ConfigListCursor.- returns
a
Rightwith this cursor as a list cursor if the cast can be done,Leftwith a list of failures otherwise.
- Definition Classes
- ConfigCursor
-
def
asMap: Either[ConfigReaderFailures, Map[String, ConfigCursor]]
Casts this cursor to a map from config keys to cursors.
Casts this cursor to a map from config keys to cursors.
- returns
a
Rightwith the map pointed to by this cursor if the cast can be done,Leftwith a list of failures otherwise.
- Definition Classes
- ConfigCursor
-
def
asObjectCursor: Either[ConfigReaderFailures, ConfigObjectCursor]
Casts this cursor to a
ConfigObjectCursor.Casts this cursor to a
ConfigObjectCursor.- returns
a
Rightwith this cursor as an object cursor if it points to an object,Leftwith a list of failures otherwise.
- Definition Classes
- ConfigCursor
-
def
asString: Either[ConfigReaderFailures, String]
Casts this cursor to a string.
Casts this cursor to a string.
- returns
a
Rightwith the string value pointed to by this cursor if the cast can be done,Leftwith a list of failures otherwise.
- Definition Classes
- ConfigCursor
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
failed[A](reason: FailureReason): Either[ConfigReaderFailures, A]
Returns a failed
ConfigReaderresult resulting from scoping aFailureReasoninto the context of this cursor.Returns a failed
ConfigReaderresult resulting from scoping aFailureReasoninto the context of this cursor.This operation is the easiest way to return a failure from a
ConfigReader.- A
the returning type of the
ConfigReader- reason
the reason of the failure
- returns
a failed
ConfigReaderresult built by scopingreasoninto the context of this cursor.
- Definition Classes
- ConfigCursor
-
def
failureFor(reason: FailureReason): ConfigReaderFailure
Returns a
ConfigReaderFailureresulting from scoping aFailureReasoninto the context of this cursor.Returns a
ConfigReaderFailureresulting from scoping aFailureReasoninto the context of this cursor.This operation is useful for constructing
ConfigReaderFailureswhen there are multipleFailureReasons.- reason
the reason of the failure
- returns
a
ConfigReaderFailurebuilt by scopingreasoninto the context of this cursor.
- Definition Classes
- ConfigCursor
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isNull: Boolean
Returns whether this cursor points to a
nullconfig value.Returns whether this cursor points to a
nullconfig value. An explicitnullvalue is different than a missing value -isUndefinedcan be used to check for the latter.- returns
trueif this cursor points to anullvalue,falseotherwise.
- Definition Classes
- ConfigCursor
-
def
isUndefined: Boolean
Returns whether this cursor points to an undefined value.
Returns whether this cursor points to an undefined value. A cursor can point to an undefined value when a missing config key is requested or when a
nullConfigValueis provided, among other reasons.- returns
trueif this cursor points to an undefined value,falseotherwise.
- Definition Classes
- ConfigCursor
-
def
location: Option[ConfigValueLocation]
The file system location of the config to which this cursor points.
The file system location of the config to which this cursor points.
- Definition Classes
- ConfigCursor
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
path: String
The path in the config to which this cursor points.
The path in the config to which this cursor points.
- Definition Classes
- ConfigCursor
-
val
pathElems: List[String]
- Definition Classes
- SimpleConfigCursor → ConfigCursor
-
def
scopeFailure[A](result: Either[FailureReason, A]): Either[ConfigReaderFailures, A]
Returns a failed
ConfigReaderresult resulting from scoping aEither[FailureReason, A]into the context of this cursor.Returns a failed
ConfigReaderresult resulting from scoping aEither[FailureReason, A]into the context of this cursor.This operation is needed when control of the reading process is passed to a place without a
ConfigCursorinstance providing the nexessary context (for example, whenConfigReader.fromStringis used. In those scenarios, the call should be wrapped in this method in order to turnFailureReasoninstances intoConfigReaderFailures.- A
the returning type of the
ConfigReader- result
the result of a config reading operation
- returns
a
ConfigReaderresult built by scopingreasoninto the context of this cursor.
- Definition Classes
- ConfigCursor
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
val
value: ConfigValue
- Definition Classes
- SimpleConfigCursor → ConfigCursor
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )