org.eclipse.emf.codegen.ecore.generator
Class AbstractGeneratorAdapterFactory
java.lang.Object
org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
org.eclipse.emf.codegen.ecore.generator.AbstractGeneratorAdapterFactory
- All Implemented Interfaces:
- AdapterFactory, GeneratorAdapterFactory
- public abstract class AbstractGeneratorAdapterFactory
- extends AdapterFactoryImpl
- implements GeneratorAdapterFactory
- Since:
- 2.2.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
generator
protected Generator generator
AbstractGeneratorAdapterFactory
public AbstractGeneratorAdapterFactory()
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