Examples of metaPropertyExists()


Examples of org.joda.beans.MetaBean.metaPropertyExists()

      deal = (Deal) metaBean.builder().build();
      for (Map.Entry<String, String> entry : tradeAttributes.entrySet()) {
        String key = entry.getKey();
        if (key.startsWith(DEAL_PREFIX) && !key.equals(DEAL_CLASSNAME) && !key.equals(DEAL_TYPE)) {
          String propertyName = StringUtils.substringAfter(key, DEAL_PREFIX);
          if (metaBean.metaPropertyExists(propertyName)) {
            MetaProperty<?> mp = metaBean.metaProperty(propertyName);
            String value = entry.getValue();
            if (s_logger.isDebugEnabled()) {
              s_logger.debug("Setting property {}({}) with value {}", new Object[]{mp, mp.propertyType(), value});
            }
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.