- Companion:
- class
- Source:
- ValidationModule.scala
Type members
Inherited classlikes
Convenient accessors makes type inference better
Convenient accessors makes type inference better
- Inherited from:
- ValidationModule
- Source:
- ValidationModule.scala
Inherited types
jap.fields.ValidationPolicy alias. Infers F, V, E
jap.fields.ValidationPolicy alias. Infers F, V, E
- Inherited from:
- ValidationModule
- Source:
- ValidationModule.scala
jap.fields.ValidationPolicyBuilder alias. Infers F, V, E
jap.fields.ValidationPolicyBuilder alias. Infers F, V, E
- Inherited from:
- ValidationModule
- Source:
- ValidationModule.scala
jap.fields.Rule alias. F, V, E infered from jap.fields.ValidationModule Very useful for type inference when building custom validations
jap.fields.Rule alias. F, V, E infered from jap.fields.ValidationModule Very useful for type inference when building custom validations
- Inherited from:
- ValidationModule
- Source:
- ValidationModule.scala
jap.fields.ValidationPolicy alias. Infers F, V, E
jap.fields.ValidationPolicy alias. Infers F, V, E
- Inherited from:
- ValidationModule
- Source:
- ValidationModule.scala
jap.fields.ValidationPolicyBuilder alias. Infers F, V, E
jap.fields.ValidationPolicyBuilder alias. Infers F, V, E
- Inherited from:
- ValidationModule
- Source:
- ValidationModule.scala
Value members
Inherited methods
Unpacks rule
from Option
if None
returns valid
Unpacks rule
from Option
if None
returns valid
- Inherited from:
- ModuleOptionSyntax
- Source:
- OptionSyntax.scala
Inherited fields
Extensions
Inherited extensions
Adds new subrule to builder. Same as subRule
but for 3 subrules
Adds new subrule to builder. Same as subRule
but for 3 subrules
- Inherited from:
- PolicySyntax
- Source:
- PolicySyntax.scala
Adds new subrule to builder. Same as subRule
but for 2 subrules
Adds new subrule to builder. Same as subRule
but for 2 subrules
- Inherited from:
- PolicySyntax
- Source:
- PolicySyntax.scala
Adds new subrule to builder. Uses selector
to create jap.fields.Field, rules
are applied to that field
Adds new subrule to builder. Uses selector
to create jap.fields.Field, rules
are applied to that field
- Inherited from:
- PolicySyntax
- Source:
- PolicySyntax.scala
Returns subfield using selector
function to extract value and as path
Returns subfield using selector
function to extract value and as path
Example
scala> val request = Request(User("ann"))
scala> val field = Field.from(request)
val field: jap.fields.Field[Request] = request:Request(User(ann))
scala> field.sub(_.user.name)
val res1: jap.fields.Field[String] = request.user.name:ann
- Inherited from:
- FieldSyntax
- Source:
- FieldSyntax.scala
Returns jap.fields.Field that has provided value and infers its jap.fields.FieldPath from field selects
Returns jap.fields.Field that has provided value and infers its jap.fields.FieldPath from field selects
Example:
scala> val request = Request(User("ann"))
val request: Request = Request(User(ann))
scala> val field = Field.from(request.user.name)
val field: jap.fields.Field[String] = request.user.name:ann
- Inherited from:
- FieldSyntax
- Source:
- FieldSyntax.scala
Similar to Field.from
but drops first selector path
Similar to Field.from
but drops first selector path
Example:
scala> val request = Request(User("ann"))
val request: Request = Request(User(ann))
scala> val field = Field.sub(request.user.name)
val field: jap.fields.Field[String] = user.name:ann
- Inherited from:
- FieldSyntax
- Source:
- FieldSyntax.scala
Implicits
Inherited implicits
- Inherited from:
- ModuleBooleanSyntax
- Source:
- BooleanSyntax.scala
- Inherited from:
- ModuleIterableSyntax
- Source:
- IterableSyntax.scala
- Inherited from:
- ModuleMapSyntax
- Source:
- MapSyntax.scala
- Inherited from:
- ModuleOptionSyntax
- Source:
- OptionSyntax.scala
- Inherited from:
- ModuleOrderingSyntax
- Source:
- OrderingSyntax.scala
- Inherited from:
- RuleSyntax
- Source:
- RuleSyntax.scala
- Inherited from:
- RuleSyntax
- Source:
- RuleSyntax.scala
- Inherited from:
- ModuleStringSyntax
- Source:
- StringSyntax.scala