Package net.infopeers.restrant.commons.populate.clone

Examples of net.infopeers.restrant.commons.populate.clone.BeansInvoker


  protected final Object recur(Object obj, int level, Object to) {
    if (obj == null)
      return null;
 
    BeansInvoker invoker;
    if (to == null) {
      invoker = new BeansInvoker(obj, Object.class);
    } else {
      invoker = new BeansInvoker(obj, to);
    }
 
    Object res = parent.convert(invoker, level);
    return (res == Populator.INVALID_OBJECT) ? null : res;
  }
View Full Code Here


  public Object clone(Class type, Object from) {

    if(type == null) throw new IllegalArgumentException("type == null");
    if(from == null) throw new IllegalArgumentException("from == null");
   
    BeansInvoker invoker = new BeansInvoker(from, type);
    return traits.convert(invoker, 0);
  }
View Full Code Here

  public void populate(Object from, Object to) {
    if(from == null) throw new IllegalArgumentException("from == null");
    if(to == null) throw new IllegalArgumentException("to == null");
   
    BeansInvoker invoker = new BeansInvoker(from, to);
    traits.convert(invoker, 0);
  }
View Full Code Here

TOP

Related Classes of net.infopeers.restrant.commons.populate.clone.BeansInvoker

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.