Package org.openbravo.base.model

Examples of org.openbravo.base.model.Property


   *          the value being set
   * @throws OBSecurityException
   *           , OBValidationException
   */
  public void set(String propName, Object value) {
    final Property p = getEntity().getProperty(propName);
    p.checkIsValidValue(value);
    checkDerivedReadable(p);
    p.checkIsWritable();
    setValue(propName, value);
  }
View Full Code Here


      // TODO: i18n this
      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

Related Classes of org.openbravo.base.model.Property

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.