net.sf.doolin.util.copy
Class CopyUtils

java.lang.Object
  extended by net.sf.doolin.util.copy.CopyUtils

public class CopyUtils
extends Object

Copy utilities methods.

Author:
Damien Coraboeuf

Method Summary
static void copyProperties(Object target, Object source, String... propertyNames)
          Copies properties of the same type from one object to the other
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

copyProperties

public static void copyProperties(Object target,
                                  Object source,
                                  String... propertyNames)
Copies properties of the same type from one object to the other

Parameters:
target - Target object
source - Source object
propertyNames - Names of the properties to copy


Copyright © 2011. All Rights Reserved.