org.eclipse.emf.codegen.ecore.genmodel.generator
Class GenModelGeneratorAdapterFactory
java.lang.Object
org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
org.eclipse.emf.codegen.ecore.genmodel.util.GenModelAdapterFactory
org.eclipse.emf.codegen.ecore.genmodel.generator.GenModelGeneratorAdapterFactory
- All Implemented Interfaces:
- AdapterFactory, GeneratorAdapterFactory
- public class GenModelGeneratorAdapterFactory
- extends GenModelAdapterFactory
- implements GeneratorAdapterFactory
- Since:
- 2.2.0
| Methods inherited from class org.eclipse.emf.codegen.ecore.genmodel.util.GenModelAdapterFactory |
createAdapter, createEObjectAdapter, createGenAnnotationAdapter, createGenBaseAdapter, createGenClassifierAdapter, createGenDataTypeAdapter, createGenEnumLiteralAdapter, createGenFeatureAdapter, createGenOperationAdapter, createGenParameterAdapter, createGenTypedElementAdapter |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DESCRIPTOR
public static final GeneratorAdapterFactory.Descriptor DESCRIPTOR
MERGE_RULES_PATH_NAME
protected static final java.lang.String MERGE_RULES_PATH_NAME
- See Also:
- Constant Field Values
generator
protected Generator generator
genModelGeneratorAdapter
protected GenBaseGeneratorAdapter genModelGeneratorAdapter
genPackageGeneratorAdapter
protected GenBaseGeneratorAdapter genPackageGeneratorAdapter
genClassGeneratorAdapter
protected GenBaseGeneratorAdapter genClassGeneratorAdapter
genEnumGeneratorAdapter
protected GenBaseGeneratorAdapter genEnumGeneratorAdapter
GenModelGeneratorAdapterFactory
public GenModelGeneratorAdapterFactory()
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 GenModelAdapterFactory
- Returns:
- whether this factory is applicable for the type of the object.
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
createGenModelAdapter
public Adapter createGenModelAdapter()
- Description copied from class:
GenModelAdapterFactory
- Creates a new adapter for an object of class '
Gen Model'.
This default implementation returns null so that we can easily ignore cases;
it's useful to ignore a case when inheritance will catch all the cases anyway.
- Overrides:
createGenModelAdapter in class GenModelAdapterFactory
- Returns:
- the new adapter.
- See Also:
GenModel
createGenPackageAdapter
public Adapter createGenPackageAdapter()
- Description copied from class:
GenModelAdapterFactory
- Creates a new adapter for an object of class '
Gen Package'.
This default implementation returns null so that we can easily ignore cases;
it's useful to ignore a case when inheritance will catch all the cases anyway.
- Overrides:
createGenPackageAdapter in class GenModelAdapterFactory
- Returns:
- the new adapter.
- See Also:
GenPackage
createGenClassAdapter
public Adapter createGenClassAdapter()
- Description copied from class:
GenModelAdapterFactory
- Creates a new adapter for an object of class '
Gen Class'.
This default implementation returns null so that we can easily ignore cases;
it's useful to ignore a case when inheritance will catch all the cases anyway.
- Overrides:
createGenClassAdapter in class GenModelAdapterFactory
- Returns:
- the new adapter.
- See Also:
GenClass
createGenEnumAdapter
public Adapter createGenEnumAdapter()
- Description copied from class:
GenModelAdapterFactory
- Creates a new adapter for an object of class '
Gen Enum'.
This default implementation returns null so that we can easily ignore cases;
it's useful to ignore a case when inheritance will catch all the cases anyway.
- Overrides:
createGenEnumAdapter in class GenModelAdapterFactory
- Returns:
- the new adapter.
- See Also:
GenEnum
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
getTemplatePath
protected java.lang.String[] getTemplatePath(GenModel genModel)
dispose
public void dispose()
- Specified by:
dispose in interface GeneratorAdapterFactory