sealed abstract class YObj extends YNodeLike with Dynamic

Represents a value of one of two possible types (a disjoint union.) An instance of YObj is an instance of either YFail or YSuccess that is a wrapper of a YNode. It extends Dynamic to 'simulate' a Dynamic Object

Linear Supertypes
Dynamic, YNodeLike, YValueLike, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. YObj
  2. Dynamic
  3. YNodeLike
  4. YValueLike
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract 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

  2. abstract 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

  3. abstract def isError: Boolean

    Returns true if the option is YFail, false otherwise.

  4. abstract def selectDynamic(key: String): YObj

    Dereference the node as a Map it not a YMap or the key is not found it returns an YError Use YObj.apply when the name of the field clashes with methods of this class

  5. abstract def tagType: YType
    Definition Classes
    YNodeLike
  6. abstract def thisNode: YNode
    Attributes
    protected[model]
    Definition Classes
    YNodeLike

Concrete 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. final def applyDynamic(key: String)(index: Int): YObj

    Dereference the node as a Map and then as an Array

  7. 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
  8. 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
  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. 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
  11. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @IntrinsicCandidate()
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  14. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  16. def isDefined: Boolean

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

  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. def isNull: Boolean
    Definition Classes
    YNodeLike
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  22. def obj: YObj

    Returns the Node as an YObj

    Returns the Node as an YObj

    Definition Classes
    YObjYNodeLike
  23. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  24. 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
  25. 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
  26. def toString(): String
    Definition Classes
    AnyRef → Any
  27. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. 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 Dynamic

Inherited from YNodeLike

Inherited from YValueLike

Inherited from AnyRef

Inherited from Any

Ungrouped