Examples of doCheckAllowedValue()


Examples of org.openbravo.base.model.Property.doCheckAllowedValue()

      return "Value (" + value + ")  is too long, it has length " + str.length()
          + ", the maximum allowed length is " + getFieldLength();
    }

    final Property p = getProperty();
    if (p.doCheckAllowedValue() && !p.isAllowedValue(str)) {
      return "Value (" + value + ") is not allowed, it should be one of the following values: "
          + p.getAllowedValues() + " but it is value " + str;
    }
    return null;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.