org.eclipse.emf.codegen.ecore.generator
Class AbstractGeneratorAdapterFactory

java.lang.Object
  extended byorg.eclipse.emf.common.notify.impl.AdapterFactoryImpl
      extended byorg.eclipse.emf.codegen.ecore.generator.AbstractGeneratorAdapterFactory
All Implemented Interfaces:
AdapterFactory, GeneratorAdapterFactory

public abstract class AbstractGeneratorAdapterFactory
extends AdapterFactoryImpl
implements GeneratorAdapterFactory

Since:
2.2.0

Nested Class Summary
 
Nested classes inherited from class org.eclipse.emf.codegen.ecore.generator.GeneratorAdapterFactory
GeneratorAdapterFactory.Descriptor
 
Field Summary
protected  Generator generator
           
 
Constructor Summary
AbstractGeneratorAdapterFactory()
           
 
Method Summary
 Adapter adapt(Notifier target, java.lang.Object type)
          Returns either a previously associated adapter or a newly associated adapter, as appropriate.
protected abstract  Adapter createAdapter(Notifier target)
          Creates an AdapterImpl.
protected  Adapter createAdapter(Notifier target, java.lang.Object type)
          Creates an adapter by calling createAdapter(Notifier).
protected  GeneratorAdapter createAdapter(java.lang.Object object)
           
protected  java.lang.Object createAdapter(java.lang.Object object, java.lang.Object type)
           
abstract  void dispose()
           
 Generator getGenerator()
           
 void initialize(java.lang.Object input)
           
 boolean isFactoryForType(java.lang.Object type)
          Returns whether this factory supports adapters for the given type.
protected  java.lang.Object resolve(java.lang.Object object, java.lang.Object type)
          Returns the object itself.
 void setGenerator(Generator generator)
           
 
Methods inherited from class org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
adapt, adaptAllNew, adaptNew, associate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.emf.common.notify.AdapterFactory
adapt, adaptAllNew, adaptNew
 

Field Detail

generator

protected Generator generator
Constructor Detail

AbstractGeneratorAdapterFactory

public AbstractGeneratorAdapterFactory()
Method Detail

isFactoryForType

public boolean isFactoryForType(java.lang.Object type)
Description copied from interface: AdapterFactory
Returns whether this factory supports adapters for the given type.

Specified by:
isFactoryForType in interface AdapterFactory
Overrides:
isFactoryForType in class AdapterFactoryImpl
Parameters:
type - the key indicating the type of adapter in question.
Returns:
false.

adapt

public Adapter adapt(Notifier target,
                     java.lang.Object type)
Description copied from interface: AdapterFactory
Returns either a previously associated adapter or a newly associated adapter, as appropriate. It will check if the right type of adapter is already associated with the target and will return it in that case; otherwise, it will create a new adapter.

Specified by:
adapt in interface AdapterFactory
Overrides:
adapt in class AdapterFactoryImpl

createAdapter

protected Adapter createAdapter(Notifier target,
                                java.lang.Object type)
Description copied from class: AdapterFactoryImpl
Creates an adapter by calling createAdapter(Notifier).

Overrides:
createAdapter in class AdapterFactoryImpl
Parameters:
target - the notifier to adapt.
type - the key indicating the type of adapter required.
Returns:
a new adapter.
See Also:
AdapterFactoryImpl.createAdapter(Notifier)

createAdapter

protected abstract Adapter createAdapter(Notifier target)
Description copied from class: AdapterFactoryImpl
Creates an AdapterImpl.

Overrides:
createAdapter in class AdapterFactoryImpl
Parameters:
target - the notifier to adapt.
Returns:
a new adapter.
See Also:
AdapterFactoryImpl.createAdapter(Notifier)

resolve

protected java.lang.Object resolve(java.lang.Object object,
                                   java.lang.Object type)
Description copied from class: AdapterFactoryImpl
Returns the object itself. This is called by adapt(Object, Object) for objects that aren't notifiers.

Overrides:
resolve in class AdapterFactoryImpl
Parameters:
object - arbitrary object to adapt.
type - the key indicating the type of adapter required.
Returns:
the object itself.
See Also:
AdapterFactoryImpl.adapt(Object,Object)

createAdapter

protected java.lang.Object createAdapter(java.lang.Object object,
                                         java.lang.Object type)

createAdapter

protected GeneratorAdapter createAdapter(java.lang.Object object)

getGenerator

public Generator getGenerator()
Specified by:
getGenerator in interface GeneratorAdapterFactory

setGenerator

public void setGenerator(Generator generator)
Specified by:
setGenerator in interface GeneratorAdapterFactory

initialize

public void initialize(java.lang.Object input)
Specified by:
initialize in interface GeneratorAdapterFactory

dispose

public abstract void dispose()
Specified by:
dispose in interface GeneratorAdapterFactory

Copyright 2001-2006 IBM Corporation and others.
All Rights Reserved.