Examples of MapPropertyConduit


Examples of org.lazan.t5.stitch.model.MapPropertyConduit

  public BeanModel<Object> getPeopleModel() {
    // initially construct a BeanModel for object (no properties)
    BeanModel<Object> beanModel = beanModelSource.createDisplayModel(Object.class, messages);
   
    // add MapPropertyConduits for each map entry
    beanModel.add("firstName", new MapPropertyConduit("firstName", String.class));
    beanModel.add("lastName", new MapPropertyConduit("lastName", String.class));
    beanModel.add("age", new MapPropertyConduit("age", int.class));
   
    return beanModel;
  }
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.