org.eclipse.ocl.ecore.delegate
Class DelegateResourceAdapter

java.lang.Object
  extended by AdapterImpl
      extended by org.eclipse.ocl.ecore.delegate.DelegateResourceAdapter

public class DelegateResourceAdapter
extends AdapterImpl

DelegateResourceAdapter extends a Resource to load and unload DelegateDomains for each package with a delegate annotation, when the resource is loaded and unloaded.

Since:
3.0

Constructor Summary
DelegateResourceAdapter()
           
 
Method Summary
static DelegateResourceAdapter getAdapter(Resource resource)
           
 Resource getTarget()
           
protected  void installPackages(EPackage.Registry packageRegistry, java.util.List<? extends EObject> contents)
           
 boolean isAdapterForType(java.lang.Object type)
           
 void notifyChanged(Notification notification)
           
 void setTarget(Notifier newTarget)
           
protected  void unloadDelegates(java.util.List<? extends EObject> contents)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelegateResourceAdapter

public DelegateResourceAdapter()
Method Detail

getAdapter

public static DelegateResourceAdapter getAdapter(Resource resource)

getTarget

public Resource getTarget()

isAdapterForType

public boolean isAdapterForType(java.lang.Object type)

notifyChanged

public void notifyChanged(Notification notification)

installPackages

protected void installPackages(EPackage.Registry packageRegistry,
                               java.util.List<? extends EObject> contents)

setTarget

public void setTarget(Notifier newTarget)

unloadDelegates

protected void unloadDelegates(java.util.List<? extends EObject> contents)

Copyright 2002, 2007 IBM Corporation and others.
All Rights Reserved.