Package

com.github.tminglei

bind

Permalink

package bind

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. bind
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. type Constraint = (String, Map[String, String], Messages, Options) ⇒ Seq[(String, String)]

    Permalink
  2. trait Constraints extends AnyRef

    Permalink
  3. type ErrProcessor[R] = (Seq[(String, String)]) ⇒ R

    Permalink
  4. case class ExtensionMeta(name: String, desc: String, params: List[_] = Nil) extends Product with Serializable

    Permalink
  5. type ExtraConstraint[T] = (String, T, Messages) ⇒ Seq[String]

    Permalink
  6. case class FieldMapping[T](inputMode: InputMode = SoloInput, doConvert: (String, Map[String, String]) ⇒ T, moreValidate: Constraint = PassValidating, meta: MappingMeta, options: Options = Options.apply()) extends Mapping[T] with Product with Serializable

    Permalink

    A field mapping is an atomic mapping, which doesn't contain other mappings

  7. case class FormBinder[R](messages: Messages, errProcessor: ErrProcessor[R] = identity[Seq[(String, String)]]) extends Product with Serializable

    Permalink

    The Facade class

  8. case class GroupMapping[T](fields: Seq[(String, Mapping[_])], doConvert: (String, Map[String, String]) ⇒ T, options: Options = ...) extends Mapping[T] with Product with Serializable

    Permalink

    A group mapping is a compound mapping, and is used to construct a complex/nested mapping

  9. final class Ignored[T] extends AnyRef

    Permalink
  10. sealed trait InputMode extends AnyRef

    Permalink

    Some mark traits, used to help ensure the matching of fixtures in a data processing flow/pipe

  11. trait Mapping[T] extends Metable[MappingMeta]

    Permalink

    A mapping, w/ constraints/processors/options, was used to validate/convert input data

  12. case class MappingMeta(targetType: ClassTag[_], baseMappings: List[Mapping[_]] = Nil) extends Product with Serializable

    Permalink
  13. trait Mappings extends AnyRef

    Permalink
  14. type Messages = (String) ⇒ Option[String]

    Permalink
  15. trait Metable[M] extends AnyRef

    Permalink

    Trait/classes for meta support

  16. case class Options(eagerCheck: Option[Boolean] = None, skipUntouched: Option[Boolean] = None, touchedChecker: Option[TouchedChecker] = None, _label: Option[String] = None, _constraints: List[Constraint] = Nil, _extraConstraints: List[ExtraConstraint[_]] = Nil, _processors: List[PreProcessor] = Nil, _ignoreConstraints: Boolean = false, _inputMode: InputMode = SoloInput, _attachment: Option[Any] = None) extends Product with Serializable

    Permalink

    Used to transfer config info in the data processing flow

  17. type PreProcessor = (String, Map[String, String], Options) ⇒ Map[String, String]

    Permalink
  18. trait Processors extends AnyRef

    Permalink
  19. type TouchedChecker = (String, Map[String, String]) ⇒ Boolean

    Permalink

Value Members

  1. object BulkInput extends InputMode

    Permalink
  2. object Constraints extends Constraints

    Permalink
  3. object FrameworkUtils

    Permalink

    Framework internal used util methods (!!!NOTE: be careful if using it externally)

  4. object Mappings extends Mappings

    Permalink
  5. object PolyInput extends InputMode

    Permalink
  6. object Processors extends Processors

    Permalink
  7. object SoloInput extends InputMode

    Permalink
  8. object simple extends Mappings with Constraints with Processors

    Permalink

    A helper object, used to simplify form-binder usage

    A helper object, used to simplify form-binder usage

    Note: add

    import com.github.tminglei.bind.simple._

    to your class, then you can use form binder's built-in mappings/constraints/processors directly

    import com.github.tminglei.bind.simple._ }}} you can use form binder's built-in mappings/constraints/processors directly

Inherited from AnyRef

Inherited from Any

Ungrouped