コード例 #1
0
 private final <T> void validateProperty_getdes_gruppo(
     final GwtValidationContext<T> context,
     final Set<ConstraintViolation<T>> violations,
     com.cesaco.myprinterp.client.shared.Gruppo object,
     final java.lang.String value,
     Class<?>... groups) {
   final GwtValidationContext<T> myContext = context.append("des_gruppo");
 }
コード例 #2
0
 private final <T> void validateProperty_cod_gruppo(
     final GwtValidationContext<T> context,
     final Set<ConstraintViolation<T>> violations,
     com.cesaco.myprinterp.client.shared.Gruppo object,
     final java.lang.String value,
     Class<?>... groups) {
   final GwtValidationContext<T> myContext = context.append("cod_gruppo");
   validate(
       myContext,
       violations,
       object,
       value,
       new org.hibernate.validator.constraints.impl.NotNullValidator(),
       cod_gruppo_c0,
       groups);
 }
コード例 #3
0
 public <T> Set<ConstraintViolation<T>> validate(
     GwtValidationContext<T> context,
     com.cesaco.myprinterp.client.shared.Gruppo object,
     Class<?>... groups) {
   try {
     Set<ConstraintViolation<T>> violations = new HashSet<ConstraintViolation<T>>();
     context.addValidatedObject(object);
     validateProperty_getcod_gruppo(context, violations, object, object.getCod_gruppo(), groups);
     validateProperty_cod_gruppo(context, violations, object, _cod_gruppo(object), groups);
     validateProperty_getdes_gruppo(context, violations, object, object.getDes_gruppo(), groups);
     validateProperty_des_gruppo(context, violations, object, _des_gruppo(object), groups);
     return violations;
   } catch (IllegalArgumentException e) {
     throw e;
   } catch (ValidationException e) {
     throw e;
   } catch (Exception e) {
     throw new ValidationException(
         "Error validating com.cesaco.myprinterp.client.shared.Gruppo", e);
   }
 }