com.planeth.common.helper
Class ObjectHelper

java.lang.Object
  extended bycom.planeth.common.helper.ObjectHelper

public class ObjectHelper
extends java.lang.Object

Helper to copy Objects and getting Object Information.

Author:
Andreas Grässer, gal@planet-h.com.
created Sep 9, 2005

Method Summary
static java.lang.Object createDeepCopy(java.lang.Object obj)
          Creates a deepCopy of the passed Object
static java.lang.String getShortClassName(java.lang.Class cls)
          Returns the className of the passed class without the package path
static java.lang.String getShortClassName(java.lang.Object obj)
          Returns the className of the passed object without the package path
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createDeepCopy

public static java.lang.Object createDeepCopy(java.lang.Object obj)
Creates a deepCopy of the passed Object

Parameters:
obj -
Returns:
a deeepCopy of the passed Object

getShortClassName

public static java.lang.String getShortClassName(java.lang.Class cls)
Returns the className of the passed class without the package path

Parameters:
cls -
Returns:
the className of the passed class without the package path

getShortClassName

public static java.lang.String getShortClassName(java.lang.Object obj)
Returns the className of the passed object without the package path

Parameters:
obj -
Returns:
the className of the passed object without the package path