public class EcoreAdapterFactory
extends AdapterFactoryImpl
createXXX method for each class of the model.
EcorePackage| Modifier and Type | Field and Description |
|---|---|
protected static EcorePackage |
modelPackage
The cached model package.
|
protected EcoreSwitch<Adapter> |
modelSwitch
The switch that delegates to the
createXXX methods. |
| Constructor and Description |
|---|
EcoreAdapterFactory()
Creates an instance of the adapter factory.
|
| Modifier and Type | Method and Description |
|---|---|
Adapter |
createAdapter(Notifier target)
Creates an adapter for the
target. |
Adapter |
createEAnnotationAdapter()
Creates a new adapter for an object of class '
EAnnotation'. |
Adapter |
createEAttributeAdapter()
Creates a new adapter for an object of class '
EAttribute'. |
Adapter |
createEClassAdapter()
Creates a new adapter for an object of class '
EClass'. |
Adapter |
createEClassifierAdapter()
Creates a new adapter for an object of class '
EClassifier'. |
Adapter |
createEDataTypeAdapter()
Creates a new adapter for an object of class '
EData Type'. |
Adapter |
createEEnumAdapter()
Creates a new adapter for an object of class '
EEnum'. |
Adapter |
createEEnumLiteralAdapter()
Creates a new adapter for an object of class '
EEnum Literal'. |
Adapter |
createEFactoryAdapter()
Creates a new adapter for an object of class '
EFactory'. |
Adapter |
createEGenericTypeAdapter()
Creates a new adapter for an object of class '
EGeneric Type'. |
Adapter |
createEModelElementAdapter()
Creates a new adapter for an object of class '
EModel Element'. |
Adapter |
createENamedElementAdapter()
Creates a new adapter for an object of class '
ENamed Element'. |
Adapter |
createEObjectAdapter()
Creates a new adapter for the default case.
|
Adapter |
createEOperationAdapter()
Creates a new adapter for an object of class '
EOperation'. |
Adapter |
createEPackageAdapter()
Creates a new adapter for an object of class '
EPackage'. |
Adapter |
createEParameterAdapter()
Creates a new adapter for an object of class '
EParameter'. |
Adapter |
createEReferenceAdapter()
Creates a new adapter for an object of class '
EReference'. |
Adapter |
createEStringToStringMapEntryAdapter()
Creates a new adapter for an object of class '
EString To String Map Entry'. |
Adapter |
createEStructuralFeatureAdapter()
Creates a new adapter for an object of class '
EStructural Feature'. |
Adapter |
createETypedElementAdapter()
Creates a new adapter for an object of class '
ETyped Element'. |
Adapter |
createETypeParameterAdapter()
Creates a new adapter for an object of class '
EType Parameter'. |
boolean |
isFactoryForType(java.lang.Object object)
Returns whether this factory is applicable for the type of the object.
|
protected static EcorePackage modelPackage
protected EcoreSwitch<Adapter> modelSwitch
createXXX methods.
public EcoreAdapterFactory()
public boolean isFactoryForType(java.lang.Object object)
true if the object is either the model's package or is an instance object of the model.
public Adapter createAdapter(Notifier target)
target.
target - the object to adapt.target.public Adapter createEModelElementAdapter()
EModel Element'.
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.
EModelElementpublic Adapter createEStructuralFeatureAdapter()
EStructural Feature'.
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.
EStructuralFeaturepublic Adapter createEAnnotationAdapter()
EAnnotation'.
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.
EAnnotationpublic Adapter createEAttributeAdapter()
EAttribute'.
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.
EAttributepublic Adapter createEClassAdapter()
EClass'.
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.
EClasspublic Adapter createEDataTypeAdapter()
EData Type'.
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.
EDataTypepublic Adapter createEClassifierAdapter()
EClassifier'.
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.
EClassifierpublic Adapter createENamedElementAdapter()
ENamed Element'.
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.
ENamedElementpublic Adapter createETypedElementAdapter()
ETyped Element'.
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.
ETypedElementpublic Adapter createEParameterAdapter()
EParameter'.
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.
EParameterpublic Adapter createEOperationAdapter()
EOperation'.
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.
EOperationpublic Adapter createEPackageAdapter()
EPackage'.
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.
EPackagepublic Adapter createEFactoryAdapter()
EFactory'.
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.
EFactorypublic Adapter createEEnumLiteralAdapter()
EEnum Literal'.
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.
EEnumLiteralpublic Adapter createEEnumAdapter()
EEnum'.
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.
EEnumpublic Adapter createEReferenceAdapter()
EReference'.
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.
EReferencepublic Adapter createEStringToStringMapEntryAdapter()
EString To String Map Entry'.
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.
Map.Entrypublic Adapter createEGenericTypeAdapter()
EGeneric Type'.
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.
EGenericTypepublic Adapter createETypeParameterAdapter()
EType Parameter'.
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.
ETypeParameterpublic Adapter createEObjectAdapter()
Copyright © 2018. Licensed under the Eclipse Public License v1.0. All rights reserved.
Submit a bug or feature