public class ChartAdapterFactory
extends AdapterFactoryImpl
createXXX method for each class of the model.
ChartPackage| Modifier and Type | Field and Description |
|---|---|
protected static ChartPackage |
modelPackage
The cached model package.
|
protected ChartSwitch<Adapter> |
modelSwitch
The switch that delegates to the
createXXX methods. |
| Constructor and Description |
|---|
ChartAdapterFactory()
Creates an instance of the adapter factory.
|
| Modifier and Type | Method and Description |
|---|---|
Adapter |
createAdapter(Notifier target)
Creates an adapter for the
target. |
Adapter |
createChartViewAdapter()
Creates a new adapter for an object of class '
View'. |
Adapter |
createEObjectAdapter()
Creates a new adapter for the default case.
|
Adapter |
createFigureAdapter()
Creates a new adapter for an object of class '
Figure'. |
Adapter |
createPrimitiveAdapter()
Creates a new adapter for an object of class '
Primitive'. |
boolean |
isFactoryForType(java.lang.Object object)
Returns whether this factory is applicable for the type of the object.
|
protected static ChartPackage modelPackage
protected ChartSwitch<Adapter> modelSwitch
createXXX methods.
public ChartAdapterFactory()
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 createChartViewAdapter()
View'.
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.
ChartViewpublic Adapter createPrimitiveAdapter()
Primitive'.
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.
Primitivepublic Adapter createFigureAdapter()
Figure'.
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.
Figurepublic Adapter createEObjectAdapter()
Copyright (c) IBH SYSTEMS GmbH and others 2010, 2013.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0