Packages

c

ltbs.uniform

RichInput

implicit final class RichInput extends AnyVal

Linear Supertypes
AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RichInput
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new RichInput(input: Input)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##: Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  6. val input: Input
  7. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  8. def stringSubField(key: String, pipeline: Rule[String] = Validated.Valid(_)): Validated[ErrorTree, String]

    Extract a string from a child element

  9. def subField[A](key: String, pipeline: Transformation[String, A]): Validated[ErrorTree, A]

    Extract a string from a child element, then transform it into the desired datatype

  10. def toField[A](pipeline: Transformation[String, A]): Validated[ErrorTree, A]

    Take the string at the root of the input tree and pass it through the transformation pipeline provided.

    Take the string at the root of the input tree and pass it through the transformation pipeline provided. This is usually done when constructing a codec for a datatype.

    For example -

    val someBool: Validated[ErrorTree, Boolean] =
      someInput.toField[Boolean]{x: String =>
        Validated.catchOnly[IllegalArgumentException](
          x.toBoolean
        ).leftMap(_ => ErrorMsg("invalid").toTree)
      }
  11. def toString(): String
    Definition Classes
    Any
  12. def toStringField(pipeline: Rule[String] = Validated.Valid(_)): Validated[ErrorTree, String]

    Extract a string from the root of the Input tree.

    Extract a string from the root of the Input tree. A more specialised version of toField that only handles strings.

  13. def toUrlEncodedString: String

    Generate a UTF-8 URL encoded String.

Inherited from AnyVal

Inherited from Any

Ungrouped