Package org.joda.beans

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


    final List<Throwable> exceptions = new ArrayList<Throwable>();
    final Collection<T> objects = new ArrayList<T>();
    final int[] parameterIndex = new int[mps.size()];
    for (int i = 0; i < longest; i++) {
      try {
        BeanBuilder<?> builder = mb.builder();
        for (int j = 0; j < mps.size(); j++) {
          Object value = parameterValues[j].get(parameterIndex[j]);
          parameterIndex[j] = (parameterIndex[j] + 1) % parameterValues[j].size();
          MetaProperty<?> metaProperty = mps.get(j);
          if (metaProperty.readWrite() != PropertyReadWrite.READ_ONLY) {
View Full Code Here


    try {
      // Get a reference to the meta-bean
      MetaBean metaBean = JodaBeanUtils.metaBean(clazz);

      // Get a new builder from the meta-bean
      BeanBuilder<? extends Bean> builder = metaBean.builder();

      // Populate the bean from the supplied row using the builder
      for (MetaProperty<?> metaProperty : JodaBeanUtils.metaBean(clazz).metaPropertyIterable()) {

        // Skip any undesired properties, process the rest
View Full Code Here

        cls = DealAttributeEncoder.class.getClassLoader().loadClass(dealClass);
      } catch (ClassNotFoundException ex) {
        throw new OpenGammaRuntimeException("Unable to load deal class", ex);
      }
      MetaBean metaBean = JodaBeanUtils.metaBean(cls);
      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)) {
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.