org.eclipse.ocl.examples.pivot
Class ObjectUtil

java.lang.Object
  extended by org.eclipse.ocl.examples.pivot.ObjectUtil

public class ObjectUtil
extends java.lang.Object

Certain generic utility operations on objects.

Author:
Christian W. Damus (cdamus)

Constructor Summary
ObjectUtil()
           
 
Method Summary
static void dispose(java.lang.Object object)
          Disposes of the specified object.
static
<T extends NamedElement>
T
getNamedElement(java.util.Collection<T> elements, java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectUtil

public ObjectUtil()
Method Detail

dispose

public static void dispose(java.lang.Object object)
Disposes of the specified object. If, in particular, it is an EObject, then it and all of its contents will have their adapter-lists cleared.

Parameters:
object - an object to dispose

getNamedElement

public static <T extends NamedElement> T getNamedElement(java.util.Collection<T> elements,
                                                         java.lang.String name)