Package org.apache.bval.jsr.extensions
Class ExampleMethodService
- java.lang.Object
-
- org.apache.bval.jsr.extensions.ExampleMethodService
-
public class ExampleMethodService extends Object
Description: class with annotated methods to demonstrate method-level-validation
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ExampleMethodService.Person
-
Constructor Summary
Constructors Constructor Description ExampleMethodService()
ExampleMethodService(@NotNull @NotEmpty String s1, @NotNull String s2)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull @NotEmpty String
concat(@NotNull @NotEmpty String s1, @NotNull String s2)
@NotNull @Size(min=3,max=10) String
echo(@NotNull @Size(min=3,max=10) String str)
void
personOp1(@Valid ExampleMethodService.Person p)
void
personOp2(@NotNull @Valid ExampleMethodService.Person p)
void
save(@Pattern(regexp="[a-f0-9]{4}") String data)
-
-
-
Method Detail
-
concat
@NotNull @NotEmpty public @NotNull @NotEmpty String concat(@NotNull @NotEmpty @NotNull @NotEmpty String s1, @NotNull @NotNull String s2)
-
save
public void save(@Pattern(regexp="[a-f0-9]{4}") @Pattern(regexp="[a-f0-9]{4}") String data)
-
echo
@NotNull @Size(min=3, max=10) public @NotNull @Size(min=3,max=10) String echo(@NotNull @Size(min=3,max=10) @NotNull @Size(min=3,max=10) String str)
-
personOp1
public void personOp1(@Valid @Valid ExampleMethodService.Person p)
-
personOp2
public void personOp2(@NotNull @Valid @NotNull @Valid ExampleMethodService.Person p)
-
-