/** validate */
 public List<ValidateError> validate(Map<String, String> values) {
   List<ValidateError> errors = new ArrayList<>();
   Validator validator;
   ValidateError error;
   validator = ValidatorFactory.getInstance(Validator.MAX_LENGTH);
   error = validator.validate(values.get("insertUser"), convLabelName("Insert User"), 15);
   if (error != null) {
     errors.add(error);
   }
   validator = ValidatorFactory.getInstance(Validator.MAX_LENGTH);
   error = validator.validate(values.get("updateUser"), convLabelName("Update User"), 15);
   if (error != null) {
     errors.add(error);
   }
   return errors;
 }
 /**
  * validate
  *
  * @param values value map
  * @return validate error list
  */
 public List<ValidateError> validate(Map<String, String> values) {
   List<ValidateError> errors = new ArrayList<>();
   Validator validator;
   ValidateError error;
   validator = ValidatorFactory.getInstance(Validator.REQUIRED);
   error = validator.validate(values.get("id"), convLabelName("Id"));
   if (error != null) {
     errors.add(error);
   }
   validator = ValidatorFactory.getInstance(Validator.MAX_LENGTH);
   error = validator.validate(values.get("id"), convLabelName("Id"), 256);
   if (error != null) {
     errors.add(error);
   }
   validator = ValidatorFactory.getInstance(Validator.MAX_LENGTH);
   error = validator.validate(values.get("userKey"), convLabelName("User Key"), 256);
   if (error != null) {
     errors.add(error);
   }
   validator = ValidatorFactory.getInstance(Validator.MAX_LENGTH);
   error = validator.validate(values.get("rowId"), convLabelName("Row Id"), 64);
   if (error != null) {
     errors.add(error);
   }
   validator = ValidatorFactory.getInstance(Validator.INTEGER);
   error = validator.validate(values.get("insertUser"), convLabelName("Insert User"));
   if (error != null) {
     errors.add(error);
   }
   validator = ValidatorFactory.getInstance(Validator.INTEGER);
   error = validator.validate(values.get("updateUser"), convLabelName("Update User"));
   if (error != null) {
     errors.add(error);
   }
   validator = ValidatorFactory.getInstance(Validator.INTEGER);
   error = validator.validate(values.get("deleteFlag"), convLabelName("Delete Flag"));
   if (error != null) {
     errors.add(error);
   }
   return errors;
 }
 /**
  * validate
  *
  * @return validate error list
  */
 public List<ValidateError> validate() {
   List<ValidateError> errors = new ArrayList<>();
   Validator validator;
   ValidateError error;
   validator = ValidatorFactory.getInstance(Validator.REQUIRED);
   error = validator.validate(this.id, convLabelName("Id"));
   if (error != null) {
     errors.add(error);
   }
   validator = ValidatorFactory.getInstance(Validator.MAX_LENGTH);
   error = validator.validate(this.id, convLabelName("Id"), 256);
   if (error != null) {
     errors.add(error);
   }
   validator = ValidatorFactory.getInstance(Validator.MAX_LENGTH);
   error = validator.validate(this.userKey, convLabelName("User Key"), 256);
   if (error != null) {
     errors.add(error);
   }
   validator = ValidatorFactory.getInstance(Validator.MAX_LENGTH);
   error = validator.validate(this.rowId, convLabelName("Row Id"), 64);
   if (error != null) {
     errors.add(error);
   }
   validator = ValidatorFactory.getInstance(Validator.INTEGER);
   error = validator.validate(this.insertUser, convLabelName("Insert User"));
   if (error != null) {
     errors.add(error);
   }
   validator = ValidatorFactory.getInstance(Validator.INTEGER);
   error = validator.validate(this.updateUser, convLabelName("Update User"));
   if (error != null) {
     errors.add(error);
   }
   validator = ValidatorFactory.getInstance(Validator.INTEGER);
   error = validator.validate(this.deleteFlag, convLabelName("Delete Flag"));
   if (error != null) {
     errors.add(error);
   }
   return errors;
 }
예제 #4
0
 /** validate */
 public List<ValidateError> validate() {
   List<ValidateError> errors = new ArrayList<>();
   Validator validator;
   ValidateError error;
   validator = ValidatorFactory.getInstance(Validator.MAX_LENGTH);
   error = validator.validate(this.fileName, convLabelName("File Name"), 256);
   if (error != null) {
     errors.add(error);
   }
   validator = ValidatorFactory.getInstance(Validator.REQUIRED);
   error = validator.validate(this.parseStatus, convLabelName("Parse Status"));
   if (error != null) {
     errors.add(error);
   }
   validator = ValidatorFactory.getInstance(Validator.INTEGER);
   error = validator.validate(this.parseStatus, convLabelName("Parse Status"));
   if (error != null) {
     errors.add(error);
   }
   validator = ValidatorFactory.getInstance(Validator.INTEGER);
   error = validator.validate(this.insertUser, convLabelName("Insert User"));
   if (error != null) {
     errors.add(error);
   }
   validator = ValidatorFactory.getInstance(Validator.INTEGER);
   error = validator.validate(this.updateUser, convLabelName("Update User"));
   if (error != null) {
     errors.add(error);
   }
   validator = ValidatorFactory.getInstance(Validator.INTEGER);
   error = validator.validate(this.deleteFlag, convLabelName("Delete Flag"));
   if (error != null) {
     errors.add(error);
   }
   return errors;
 }
예제 #5
0
 /**
  * validate
  *
  * @param values value map
  * @return validate error list
  */
 public List<ValidateError> validate(Map<String, String> values) {
   List<ValidateError> errors = new ArrayList<>();
   Validator validator;
   ValidateError error;
   validator = ValidatorFactory.getInstance(Validator.REQUIRED);
   error = validator.validate(values.get("userId"), convLabelName("User Id"));
   if (error != null) {
     errors.add(error);
   }
   validator = ValidatorFactory.getInstance(Validator.INTEGER);
   error = validator.validate(values.get("userId"), convLabelName("User Id"));
   if (error != null) {
     errors.add(error);
   }
   validator = ValidatorFactory.getInstance(Validator.INTEGER);
   error = validator.validate(values.get("notifyMail"), convLabelName("Notify Mail"));
   if (error != null) {
     errors.add(error);
   }
   validator = ValidatorFactory.getInstance(Validator.INTEGER);
   error = validator.validate(values.get("notifyDesktop"), convLabelName("Notify Desktop"));
   if (error != null) {
     errors.add(error);
   }
   validator = ValidatorFactory.getInstance(Validator.INTEGER);
   error = validator.validate(values.get("myItemComment"), convLabelName("My Item Comment"));
   if (error != null) {
     errors.add(error);
   }
   validator = ValidatorFactory.getInstance(Validator.INTEGER);
   error = validator.validate(values.get("myItemLike"), convLabelName("My Item Like"));
   if (error != null) {
     errors.add(error);
   }
   validator = ValidatorFactory.getInstance(Validator.INTEGER);
   error = validator.validate(values.get("myItemStock"), convLabelName("My Item Stock"));
   if (error != null) {
     errors.add(error);
   }
   validator = ValidatorFactory.getInstance(Validator.INTEGER);
   error = validator.validate(values.get("toItemSave"), convLabelName("To Item Save"));
   if (error != null) {
     errors.add(error);
   }
   validator = ValidatorFactory.getInstance(Validator.INTEGER);
   error = validator.validate(values.get("toItemComment"), convLabelName("To Item Comment"));
   if (error != null) {
     errors.add(error);
   }
   validator = ValidatorFactory.getInstance(Validator.INTEGER);
   error =
       validator.validate(
           values.get("toItemIgnorePublic"), convLabelName("To Item Ignore Public"));
   if (error != null) {
     errors.add(error);
   }
   validator = ValidatorFactory.getInstance(Validator.INTEGER);
   error = validator.validate(values.get("stockItemSave"), convLabelName("Stock Item Save"));
   if (error != null) {
     errors.add(error);
   }
   validator = ValidatorFactory.getInstance(Validator.INTEGER);
   error = validator.validate(values.get("stokeItemComment"), convLabelName("Stoke Item Comment"));
   if (error != null) {
     errors.add(error);
   }
   validator = ValidatorFactory.getInstance(Validator.INTEGER);
   error = validator.validate(values.get("insertUser"), convLabelName("Insert User"));
   if (error != null) {
     errors.add(error);
   }
   validator = ValidatorFactory.getInstance(Validator.INTEGER);
   error = validator.validate(values.get("updateUser"), convLabelName("Update User"));
   if (error != null) {
     errors.add(error);
   }
   validator = ValidatorFactory.getInstance(Validator.INTEGER);
   error = validator.validate(values.get("deleteFlag"), convLabelName("Delete Flag"));
   if (error != null) {
     errors.add(error);
   }
   return errors;
 }
예제 #6
0
 /**
  * validate
  *
  * @return validate error list
  */
 public List<ValidateError> validate() {
   List<ValidateError> errors = new ArrayList<>();
   Validator validator;
   ValidateError error;
   validator = ValidatorFactory.getInstance(Validator.REQUIRED);
   error = validator.validate(this.userId, convLabelName("User Id"));
   if (error != null) {
     errors.add(error);
   }
   validator = ValidatorFactory.getInstance(Validator.INTEGER);
   error = validator.validate(this.userId, convLabelName("User Id"));
   if (error != null) {
     errors.add(error);
   }
   validator = ValidatorFactory.getInstance(Validator.INTEGER);
   error = validator.validate(this.notifyMail, convLabelName("Notify Mail"));
   if (error != null) {
     errors.add(error);
   }
   validator = ValidatorFactory.getInstance(Validator.INTEGER);
   error = validator.validate(this.notifyDesktop, convLabelName("Notify Desktop"));
   if (error != null) {
     errors.add(error);
   }
   validator = ValidatorFactory.getInstance(Validator.INTEGER);
   error = validator.validate(this.myItemComment, convLabelName("My Item Comment"));
   if (error != null) {
     errors.add(error);
   }
   validator = ValidatorFactory.getInstance(Validator.INTEGER);
   error = validator.validate(this.myItemLike, convLabelName("My Item Like"));
   if (error != null) {
     errors.add(error);
   }
   validator = ValidatorFactory.getInstance(Validator.INTEGER);
   error = validator.validate(this.myItemStock, convLabelName("My Item Stock"));
   if (error != null) {
     errors.add(error);
   }
   validator = ValidatorFactory.getInstance(Validator.INTEGER);
   error = validator.validate(this.toItemSave, convLabelName("To Item Save"));
   if (error != null) {
     errors.add(error);
   }
   validator = ValidatorFactory.getInstance(Validator.INTEGER);
   error = validator.validate(this.toItemComment, convLabelName("To Item Comment"));
   if (error != null) {
     errors.add(error);
   }
   validator = ValidatorFactory.getInstance(Validator.INTEGER);
   error = validator.validate(this.toItemIgnorePublic, convLabelName("To Item Ignore Public"));
   if (error != null) {
     errors.add(error);
   }
   validator = ValidatorFactory.getInstance(Validator.INTEGER);
   error = validator.validate(this.stockItemSave, convLabelName("Stock Item Save"));
   if (error != null) {
     errors.add(error);
   }
   validator = ValidatorFactory.getInstance(Validator.INTEGER);
   error = validator.validate(this.stokeItemComment, convLabelName("Stoke Item Comment"));
   if (error != null) {
     errors.add(error);
   }
   validator = ValidatorFactory.getInstance(Validator.INTEGER);
   error = validator.validate(this.insertUser, convLabelName("Insert User"));
   if (error != null) {
     errors.add(error);
   }
   validator = ValidatorFactory.getInstance(Validator.INTEGER);
   error = validator.validate(this.updateUser, convLabelName("Update User"));
   if (error != null) {
     errors.add(error);
   }
   validator = ValidatorFactory.getInstance(Validator.INTEGER);
   error = validator.validate(this.deleteFlag, convLabelName("Delete Flag"));
   if (error != null) {
     errors.add(error);
   }
   return errors;
 }