org.eclipse.emf.codegen.ecore.genmodel.generator
Class GenModelGeneratorAdapterFactory

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

public class GenModelGeneratorAdapterFactory
extends GenModelAdapterFactory
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
static GeneratorAdapterFactory.Descriptor DESCRIPTOR
           
protected  GenBaseGeneratorAdapter genClassGeneratorAdapter
           
protected  GenBaseGeneratorAdapter genEnumGeneratorAdapter
           
protected  Generator generator
           
protected  GenBaseGeneratorAdapter genModelGeneratorAdapter
           
protected  GenBaseGeneratorAdapter genPackageGeneratorAdapter
           
protected static java.lang.String MERGE_RULES_PATH_NAME
           
 
Fields inherited from class org.eclipse.emf.codegen.ecore.genmodel.util.GenModelAdapterFactory
modelPackage, modelSwitch
 
Constructor Summary
GenModelGeneratorAdapterFactory()
           
 
Method Summary
 Adapter adapt(Notifier target, java.lang.Object type)
          Returns either a previously associated adapter or a newly associated adapter, as appropriate.
 Adapter createGenClassAdapter()
          Creates a new adapter for an object of class 'Gen Class'
 Adapter createGenEnumAdapter()
          Creates a new adapter for an object of class 'Gen Enum'
 Adapter createGenModelAdapter()
          Creates a new adapter for an object of class 'Gen Model'
 Adapter createGenPackageAdapter()
          Creates a new adapter for an object of class 'Gen Package'
 void dispose()
           
 Generator getGenerator()
           
protected  java.lang.String[] getTemplatePath(GenModel genModel)
           
 void initialize(java.lang.Object input)
           
 boolean isFactoryForType(java.lang.Object type)
          Returns whether this factory supports adapters for the given type.
 void setGenerator(Generator generator)
           
 
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 org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
adapt, adaptAllNew, adaptNew, associate, createAdapter, resolve
 
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

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
Constructor Detail

GenModelGeneratorAdapterFactory

public GenModelGeneratorAdapterFactory()
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 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

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