object Dom
Simple Document Object Model (DOM) for CBOR.
Practically all valid CBOR encodings can be decoded into this structure and vice versa. Provided as an alternative to plain Writer-based encoding and Reader-based decoding.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Dom
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
- sealed abstract class AbstractBytesElem extends Element
- sealed abstract class AbstractTextElem extends Element
- sealed abstract class ArrayElem extends Element
- final case class BooleanElem(value: Boolean) extends Element with Product with Serializable
- final case class ByteArrayElem(value: Array[Byte]) extends AbstractBytesElem with Product with Serializable
- final case class BytesStreamElem(value: Vector[AbstractBytesElem]) extends AbstractBytesElem with Product with Serializable
- final case class DoubleElem(value: Double) extends Element with Product with Serializable
- sealed abstract class Element extends AnyRef
- final case class Float16Elem(value: Float) extends Element with Product with Serializable
- final case class FloatElem(value: Float) extends Element with Product with Serializable
- final case class IntElem(value: Int) extends Element with Product with Serializable
- final case class LongElem(value: Long) extends Element with Product with Serializable
- sealed abstract class MapElem extends Element
- final case class NumberStringElem(value: String) extends Element with Product with Serializable
- final case class OverLongElem(negative: Boolean, value: Long) extends Element with Product with Serializable
- final case class SimpleValueElem(value: SimpleValue) extends Element with Product with Serializable
- final case class StringElem(value: String) extends AbstractTextElem with Product with Serializable
- final case class TaggedElem(tag: Tag, value: Element) extends Element with Product with Serializable
- final case class TextStreamElem(value: Vector[AbstractTextElem]) extends AbstractTextElem with Product with Serializable
-
trait
Transformer extends (Element) ⇒ Element
A Dom.Transformer encapsulates the ability for arbitrary DOM transformations.
A Dom.Transformer encapsulates the ability for arbitrary DOM transformations. The default implementation applies a NOP transformation, i.e. returns an identical DOM structure.
Override some or all methods to customize the transformation logic.
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
- implicit def decoder[T <: Element]: Decoder[T]
- val elementDecoder: Decoder[Element]
- val elementEncoder: Encoder[Element]
- implicit def encoder[T <: Element]: Encoder[T]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- object ArrayElem
- object BooleanElem extends Serializable
- object MapElem
- object NullElem extends Element with Product with Serializable
- object Transformer
- object UndefinedElem extends Element with Product with Serializable
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated