org.objectweb.jac.core
Class Utils

java.lang.Object
  |
  +--org.objectweb.jac.core.Utils

public class Utils
extends Object


Constructor Summary
Utils()
           
 
Method Summary
static Object clone(Object o)
          "Semantic" clone.
static Object clone(Object o, FieldItem ignoredRelation)
          "Semantic" clone.
static Object clone(Object o, String ignoredRelation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utils

public Utils()
Method Detail

clone

public static Object clone(Object o)
                    throws InstantiationException,
                           IllegalAccessException,
                           Exception
"Semantic" clone. Same as clone(o,null)

Parameters:
o - the object to clone
Returns:
the cloned object
InstantiationException
IllegalAccessException
Exception
See Also:
clone(Object,FieldItem)

clone

public static Object clone(Object o,
                           FieldItem ignoredRelation)
                    throws InstantiationException,
                           IllegalAccessException,
                           Exception
"Semantic" clone. Collections marked as aggregation are recursively cloned (objects in the collection are cloned), otherwise the collection of the cloned objet will contains the same objects as the source object.

Parameters:
o - the object to clone
ignoredRelation - do not clone this relation and leave it empty. If null, all relations are cloned.
Returns:
the cloned object
InstantiationException
IllegalAccessException
Exception
See Also:
clone(Object)

clone

public static Object clone(Object o,
                           String ignoredRelation)
                    throws InstantiationException,
                           IllegalAccessException,
                           Exception
InstantiationException
IllegalAccessException
Exception