Package

fabric

rw

Permalink

package rw

Linear Supertypes
CompileRW, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. rw
  2. CompileRW
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. implicit class Asable extends AnyRef

    Permalink
  2. trait ClassRW[T] extends ReaderWriter[T]

    Permalink

    ClassRW provides convenience functionality to simplify class mapping with ReaderWriter

  3. trait CompileRW extends AnyRef

    Permalink
  4. implicit class Convertible[T] extends AnyRef

    Permalink
  5. trait Reader[T] extends AnyRef

    Permalink

    Reader provides a simple T => Value wrapper functionality

  6. trait ReaderWriter[T] extends Reader[T] with Writer[T]

    Permalink

    ReaderWriter provides a single class representation of a Reader and Writer for the same type

  7. trait Writer[T] extends AnyRef

    Permalink

    Writable provides a simple Value => T wrapper functionality

Value Members

  1. object RWMacros

    Permalink
  2. object Reader

    Permalink
  3. object ReaderWriter

    Permalink
  4. object Writer

    Permalink
  5. macro def ccRW[T]: ReaderWriter[T]

    Permalink
    Definition Classes
    CompileRW
  6. def defaultGetType[P](p: P): String

    Permalink

    Used by polyRW by default to getType using the class name with the first character lowercase

  7. def enumRW[T](fieldName: String, mapping: (String, T)*): ReaderWriter[T]

    Permalink

    Convenience functionality for working with enumerations

    Convenience functionality for working with enumerations

    fieldName

    the field name to refer to in the Value

    mapping

    a mapping of key/value pairs representing the String in fieldName to the representative value

  8. def polyRW[P](fieldName: String = "type", getType: (P) ⇒ String = defaultGetType)(matcher: PartialFunction[String, ReaderWriter[_ <: P]]): ReaderWriter[P]

    Permalink

    Convenience functionality for working with polymorphic types

    Convenience functionality for working with polymorphic types

    fieldName

    the field name stored in the value (defaults to "type")

    getType

    a function to determine the field value from an instance (defaults to the class name with the first character lowercase - defaultGetType)

    matcher

    a matcher for field values to get the representative ReaderWriter for that type

  9. def staticRW[T](value: T): ReaderWriter[T]

    Permalink

    Convenience functionality to provide a static / singleton value that represents that type

    Convenience functionality to provide a static / singleton value that represents that type

    value

    the singleton value to use

Inherited from CompileRW

Inherited from AnyRef

Inherited from Any

Ungrouped