toggle menu
valix
1.0.5
common
switch theme
search in API
valix-runtime
/
io.valix.runtime
/
PropertyValidationBuilder
Property
Validation
Builder
class
PropertyValidationBuilder
<
P
>
(
fieldName
:
String
)
Builder accumulating property rules.
Members
Constructors
Property
Validation
Builder
Link copied to clipboard
constructor
(
fieldName
:
String
)
Functions
email
Link copied to clipboard
fun
email
(
message
:
String
=
" must be a valid email"
)
max
Link copied to clipboard
fun
max
(
maxValue
:
Number
,
message
:
String
=
" must be at most "
)
min
Link copied to clipboard
fun
min
(
minValue
:
Number
,
message
:
String
=
" must be at least "
)
min
Length
Link copied to clipboard
fun
minLength
(
minLen
:
Int
,
message
:
String
=
" length must be at least "
)
not
Blank
Link copied to clipboard
fun
notBlank
(
message
:
String
=
" must not be blank"
)
not
Null
Link copied to clipboard
fun
notNull
(
message
:
String
=
" must not be null"
)
rule
Link copied to clipboard
fun
rule
(
code
:
String
,
message
:
String
,
predicate
:
(
P
)
->
Boolean
)