c

org.yaml.model

YSuccess

case class YSuccess(node: YNode) extends YObj with Product with Serializable

Linear Supertypes
Serializable, Serializable, Product, Equals, YObj, Dynamic, YNodeLike, YValueLike, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. YSuccess
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. YObj
  7. Dynamic
  8. YNodeLike
  9. YValueLike
  10. AnyRef
  11. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new YSuccess(node: YNode)

Value Members

  1. def !=(b: YValueLike): Boolean
    Definition Classes
    YValueLike
  2. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  3. final def ##(): Int
    Definition Classes
    AnyRef → Any
  4. def ==(b: YValueLike): Boolean
    Definition Classes
    YValueLike
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. def apply(key: YNode): YObj

    Dereference a Node as a Map[YNode,_] when fails it returns an YError.

    Dereference a Node as a Map[YNode,_] when fails it returns an YError. It can be used to replace the select Dynamic invocation if the name of the field clashes with methods of YObj

    Definition Classes
    YSuccessYObj
  7. def apply(key: Int): YObj

    Dereference a Node as an Array or if it is a Map as a Map[Int, _], when fails it returns an YError

    Dereference a Node as an Array or if it is a Map as a Map[Int, _], when fails it returns an YError

    Definition Classes
    YSuccessYObj
  8. final def applyDynamic(key: String)(index: Int): YObj

    Dereference the node as a Map and then as an Array

    Dereference the node as a Map and then as an Array

    Definition Classes
    YObj
  9. def as[T](validation: (T) ⇒ Option[String])(implicit conversion: YRead[T], iv: IllegalTypeHandler): T

    Tries to convert the node into a T, throwing an exception if it can't.

    Tries to convert the node into a T, throwing an exception if it can't. An implicit YRead[T] must be defined. An additional validation can be provided

    Definition Classes
    YNodeLike
  10. def as[T](implicit conversion: YRead[T], iv: IllegalTypeHandler): T

    Tries to convert the node into a T, throwing an exception if it can't.

    Tries to convert the node into a T, throwing an exception if it can't. An implicit YRead[T] must be defined.

    Definition Classes
    YNodeLike
  11. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  12. def asOption[T](implicit arg0: YRead[T]): Option[T]

    Tries to convert the node into a T.

    Tries to convert the node into a T. An implicit YRead[T] must be defined. Any error is mapped to None

    Definition Classes
    YNodeLike
  13. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def equals(obj: Any): Boolean
    Definition Classes
    YSuccess → Equals → AnyRef → Any
  16. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  17. def isDefined: Boolean

    Returns true if the option is an instance of YSuccess, false otherwise.

    Returns true if the option is an instance of YSuccess, false otherwise.

    Definition Classes
    YObj
  18. def isError: Boolean

    Returns true if the option is YFail, false otherwise.

    Returns true if the option is YFail, false otherwise.

    Definition Classes
    YSuccessYObj
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. def isNull: Boolean
    Definition Classes
    YNodeLike
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. val node: YNode
  23. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  25. def obj: YObj

    Returns the Node as an YObj

    Returns the Node as an YObj

    Definition Classes
    YObjYNodeLike
  26. def selectDynamic(key: String): YObj

    Dereference the node as a Map it not a YMap or the key is not found it returns YNode.Null

    Dereference the node as a Map it not a YMap or the key is not found it returns YNode.Null

    Definition Classes
    YSuccessYObj
  27. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  28. val tagType: YType
    Definition Classes
    YSuccessYNodeLike
  29. def thisNode: YNode
    Attributes
    protected[model]
    Definition Classes
    YSuccessYNodeLike
  30. def to[T](validation: (T) ⇒ Option[String])(implicit arg0: YRead[T]): Either[YError, T]

    Tries to convert the node, then if successful performs an additional validation that must return Some(errorMessage) or None.

    Tries to convert the node, then if successful performs an additional validation that must return Some(errorMessage) or None. Finally return either the value converted or an YError

    Definition Classes
    YNodeLike
  31. def to[T](implicit arg0: YRead[T]): Either[YError, T]

    Tries to convert the node and return either the value converted or an YError

    Tries to convert the node and return either the value converted or an YError

    Definition Classes
    YNodeLike
  32. def toString(): String
    Definition Classes
    YSuccess → AnyRef → Any
  33. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  35. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from YObj

Inherited from Dynamic

Inherited from YNodeLike

Inherited from YValueLike

Inherited from AnyRef

Inherited from Any

Ungrouped