Package org.cishell.utility.datastructure.datamodel.exception

Examples of org.cishell.utility.datastructure.datamodel.exception.ModelValidationException


    if (namesOfFieldsWithValue.size() > 0) {
      String exceptionMessage = String.format(
        "Field's value must be not identical.  Matches %sfields: [%s]",
        this.baseFieldName,
        StringUtilities.implodeItems(namesOfFieldsWithValue, ", "));
      throw new ModelValidationException(exceptionMessage);
    }
  }
View Full Code Here


public class EmptyTextFieldValidationRule implements FieldValidationRule<String> {
  public void validateField(DataModelField<String> field, DataModel model)
      throws ModelValidationException {
    if (StringUtilities.isNull_Empty_OrWhitespace(field.getValue())) {
      String exceptionMessage = "Field may not be empty.";
      throw new ModelValidationException(exceptionMessage);
    }
  }
View Full Code Here

    if (namesOfFieldsWithValue.size() > 1) {
      String exceptionMessage = String.format(
        "Field's value must be not identical.  Matches %sfields: [%s]",
        this.baseFieldName,
        StringUtilities.implodeItems(namesOfFieldsWithValue, ", "));
      throw new ModelValidationException(exceptionMessage);
    }
  }
View Full Code Here

TOP

Related Classes of org.cishell.utility.datastructure.datamodel.exception.ModelValidationException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.