edu.cmu.sei.aadl.model.util
Class AadlModelAdapterFactory

java.lang.Object
  extended by edu.cmu.sei.aadl.model.util.AadlModelAdapterFactory

public class AadlModelAdapterFactory
extends java.lang.Object

this class provides an adapter factory that returns a stateful adapter that can be attached to any AObject. This adapter participates in the notification and notification propagation support provided through EMF. It does so by utilizing a ComposedAdapterFactory that combines the generated adapter factories for each of the meta packages.

Author:
phf

Constructor Summary
AadlModelAdapterFactory()
           
 
Method Summary
protected  boolean checkAdapterType(java.lang.Object type)
          This method is used to determine whether the adapter supports a specified type The method is used in conjunction with the EClass/package matching of the ComposedAdapterFactory By default it returns true for the ExternalModelAdapter.class The method can be overwritten to define your own condition
 org.eclipse.emf.edit.provider.ComposedAdapterFactory createAadlModelAdapterFactory(java.lang.Object adapterType)
           
protected  org.eclipse.emf.common.notify.Adapter createUserdefinedAdapter()
          This default implementation creates an ExternalModelAdapter The method can be overwritten to result in the creation of your adapter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AadlModelAdapterFactory

public AadlModelAdapterFactory()
Method Detail

createAadlModelAdapterFactory

public org.eclipse.emf.edit.provider.ComposedAdapterFactory createAadlModelAdapterFactory(java.lang.Object adapterType)

createUserdefinedAdapter

protected org.eclipse.emf.common.notify.Adapter createUserdefinedAdapter()
This default implementation creates an ExternalModelAdapter The method can be overwritten to result in the creation of your adapter

Returns:
the adapter being created

checkAdapterType

protected boolean checkAdapterType(java.lang.Object type)
This method is used to determine whether the adapter supports a specified type The method is used in conjunction with the EClass/package matching of the ComposedAdapterFactory By default it returns true for the ExternalModelAdapter.class The method can be overwritten to define your own condition

Parameters:
type - the type for with an adapter is to be returned
Returns:
true if it matches the type