package Ġorg . got son . kom ga . infrastructure . validation Ċ Ċ import Ġjavax . validation . Constraint Ċ import Ġjavax . validation . Constraint Validator Ċ import Ġjavax . validation . Constraint Validator Context Ċ import Ġkotlin . reflect . K Class Ċ Ċ @ Constraint ( validated By Ġ= Ġ[ Blank Validator :: class ]) Ċ @ Target ( Annotation Target . VALUE _ PARAMETER , ĠAnnotation Target . FIELD , ĠAnnotation Target . PROPERTY _ GET TER , ĠAnnotation Target . AN NOT ATION _ CLASS ) Ċ @ Retention ( Annotation Retention . RUNTIME ) Ċ annotation Ġclass ĠBl ank ( ĊĠ Ġval Ġmessage : ĠString Ġ= Ġ" Must Ġbe Ġblank ", ĊĠ Ġval Ġgroups : ĠArray < K Class < out ĠAny >> Ġ= Ġ[], ĊĠ Ġval Ġpayload : ĠArray < K Class < out ĠAny >> Ġ= Ġ[] Ċ ) Ċ Ċ class ĠBl ank Validator Ġ: ĠConstraint Validator < Blank , ĠString > Ġ{ ĊĊĠ Ġoverride Ġfun ĠisValid ( value : ĠString ?, Ġcontext : ĠConstraint Validator Context ?): ĠBoolean Ġ{ ĊĠĠĠ Ġif Ġ( value Ġ== Ġnull ) Ġreturn Ġfalse ĊĠĠĠ Ġreturn Ġvalue . isBlank () ĊĠ Ġ} Ċ } Ċ