package Ġbr . com . z up . pix . shared . validation Ċ Ċ import Ġjavax . validation . Constraint Ċ import Ġjavax . validation . Payload Ċ import Ġjavax . validation . Report As Single Violation Ċ import Ġjavax . validation . constraints . Pattern Ċ import Ġkotlin . reflect . K Class Ċ Ċ @ Report As Single Violation Ċ @ Must Be Document ed Ċ @ Target ( Annotation Target . CLASS , ĠAnnotation Target . TYPE , ĠAnnotation Target . PROPERTY , ĠAnnotation Target . VALUE _ PARAMETER , ĊĠĠĠ ĠAnnotation Target . FIELD Ċ ) Ċ @ Retention ( Annotation Retention . RUNTIME ) Ċ @ Pattern ( regexp Ġ= Ġ"^ [ 0 - 9 a - f ]{ 8 }- [ 0 - 9 a - f ]{ 4 }- [ 1 - 5 ][ 0 - 9 a - f ]{ 3 }- [ 8 9 ab ][ 0 - 9 a - f ]{ 3 }- [ 0 - 9 a - f ]{ 1 2 }$ ", ĊĠĠĠ Ġflags Ġ= Ġ[ Pattern . Flag . CASE _ INS ENS ITIVE ], ĊĠĠĠ Ġmessage Ġ= Ġ" O Ġvalor Ġdeve Ġser Ġum ĠUUID ") Ċ @ Constraint ( validated By Ġ= Ġ[]) Ċ annotation Ġclass ĠValid a UUID Ġ( ĊĠĠĠ Ġval Ġmessage : ĠString Ġ= Ġ" In forme Ġo Ġvalor Ġno Ġformato ĠUUID ", ĊĠĠĠ Ġval Ġgroups : ĠArray < K Class < Any >> Ġ= Ġ[], ĊĠĠĠ Ġval Ġpayload : ĠArray < K Class < Payload >> Ġ= Ġ[], Ċ ) Ċ