Package de.mhus.lib.form

Examples of de.mhus.lib.form.ValidateException


  public void setValue(String value) throws FormException {
    if (value == null)
      value = "";

    if (value.length() < min)
      throw new ValidateException(getTarget(), this, "min");
   
    if (max > 0 && value.length() > max)
      throw new ValidateException(getTarget(), this, "max");
   
    if ((this.value != null && !this.value.equals(value))
        || (value != null && !value.equals(this.value))) {
      this.value = value;
      setChanged(true);
View Full Code Here


    if (value == null)
      value = "";

    Matcher matcher = pattern.matcher(value);
    if (!matcher.matches())
      throw new ValidateException(getTarget(), this, "format");
   
    super.setValue(value);
  }
View Full Code Here

TOP

Related Classes of de.mhus.lib.form.ValidateException

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.