Binder

com.greenfossil.data.mapping.Binder
See theBinder companion object
trait Binder[T]

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def bind(key: String, data: Option[String]): Either[Seq[MappingError], T]

Binds this field, i.e. constructs a concrete value from submitted data.

Binds this field, i.e. constructs a concrete value from submitted data.

Value parameters

data

the submitted data

key

the field key

Attributes

Returns

Either a concrete value of type T or a set of error if the binding failed.

def toBindingValue(value: T): String

Concrete methods

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any

Abstract fields

val tpe: String