Modelers

org.topcased.modeler.di.model.util
Class DiagramInterchangeAdapterFactory

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
      extended by org.topcased.modeler.di.model.util.DiagramInterchangeAdapterFactory
All Implemented Interfaces:
AdapterFactory
Direct Known Subclasses:
DiagramInterchangeItemProviderAdapterFactory

public class DiagramInterchangeAdapterFactory
extends AdapterFactoryImpl

The Adapter Factory for the model. It provides an adapter createXXX method for each class of the model.

See Also:
DiagramInterchangePackage
** Generated **

Field Summary
static java.lang.String copyright
           
protected static DiagramInterchangePackage modelPackage
          The cached model package
protected  DiagramInterchangeSwitch<Adapter> modelSwitch
          The switch the delegates to the createXXX methods
 
Constructor Summary
DiagramInterchangeAdapterFactory()
          Creates an instance of the adapter factory
 
Method Summary
 Adapter createAdapter(Notifier target)
          Creates an adapter for the target
 Adapter createDiagramAdapter()
          Creates a new adapter for an object of class 'Diagram'
 Adapter createDiagramElementAdapter()
          Creates a new adapter for an object of class 'Diagram Element'
 Adapter createDiagramLinkAdapter()
          Creates a new adapter for an object of class 'Diagram Link'
 Adapter createEdgeObjectAdapter()
          Creates a new adapter for an object of class 'Edge Object'
 Adapter createEdgeObjectOffsetAdapter()
          Creates a new adapter for an object of class 'Edge Object Offset'
 Adapter createEdgeObjectUVAdapter()
          Creates a new adapter for an object of class 'Edge Object UV'
 Adapter createEllipseAdapter()
          Creates a new adapter for an object of class 'Ellipse'
 Adapter createEMFSemanticModelBridgeAdapter()
          Creates a new adapter for an object of class 'EMF Semantic Model Bridge'
 Adapter createEObjectAdapter()
          Creates a new adapter for the default case
 Adapter createGraphConnectorAdapter()
          Creates a new adapter for an object of class 'Graph Connector'
 Adapter createGraphEdgeAdapter()
          Creates a new adapter for an object of class 'Graph Edge'
 Adapter createGraphElementAdapter()
          Creates a new adapter for an object of class 'Graph Element'
 Adapter createGraphicPrimitiveAdapter()
          Creates a new adapter for an object of class 'Graphic Primitive'
 Adapter createGraphNodeAdapter()
          Creates a new adapter for an object of class 'Graph Node'
 Adapter createImageAdapter()
          Creates a new adapter for an object of class 'Image'.
 Adapter createLeafElementAdapter()
          Creates a new adapter for an object of class 'Leaf Element'
 Adapter createPolylineAdapter()
          Creates a new adapter for an object of class 'Polyline'
 Adapter createPropertyAdapter()
          Creates a new adapter for an object of class 'Property'
 Adapter createReferenceAdapter()
          Creates a new adapter for an object of class 'Reference'
 Adapter createSemanticModelBridgeAdapter()
          Creates a new adapter for an object of class 'Semantic Model Bridge'
 Adapter createSimpleSemanticModelElementAdapter()
          Creates a new adapter for an object of class 'Simple Semantic Model Element'
 Adapter createTextElementAdapter()
          Creates a new adapter for an object of class 'Text Element'
 boolean isFactoryForType(java.lang.Object object)
          Returns whether this factory is applicable for the type of the object
 
Methods inherited from class org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
adapt, adapt, adaptAllNew, adaptNew, associate, createAdapter, resolve
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static final java.lang.String copyright

See Also:
Constant Field Values
** Generated **

modelPackage

protected static DiagramInterchangePackage modelPackage
The cached model package.

** Generated **

modelSwitch

protected DiagramInterchangeSwitch<Adapter> modelSwitch
The switch the delegates to the createXXX methods.

** Generated **
Constructor Detail

DiagramInterchangeAdapterFactory

public DiagramInterchangeAdapterFactory()
Creates an instance of the adapter factory.

** Generated **
Method Detail

isFactoryForType

public boolean isFactoryForType(java.lang.Object object)
Returns whether this factory is applicable for the type of the object. This implementation returns true if the object is either the model's package or is an instance object of the model.

Specified by:
isFactoryForType in interface AdapterFactory
Overrides:
isFactoryForType in class AdapterFactoryImpl
Returns:
whether this factory is applicable for the type of the object.
** Generated **

createAdapter

public Adapter createAdapter(Notifier target)
Creates an adapter for the target.

Overrides:
createAdapter in class AdapterFactoryImpl
Parameters:
target - the object to adapt.
Returns:
the adapter for the target.
** Generated **

createPropertyAdapter

public Adapter createPropertyAdapter()
Creates a new adapter for an object of class 'Property'. 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.

Returns:
the new adapter.
See Also:
Property
** Generated **

createDiagramElementAdapter

public Adapter createDiagramElementAdapter()
Creates a new adapter for an object of class 'Diagram 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.

Returns:
the new adapter.
See Also:
DiagramElement
** Generated **

createGraphElementAdapter

public Adapter createGraphElementAdapter()
Creates a new adapter for an object of class 'Graph 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.

Returns:
the new adapter.
See Also:
GraphElement
** Generated **

createGraphEdgeAdapter

public Adapter createGraphEdgeAdapter()
Creates a new adapter for an object of class 'Graph Edge'. 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.

Returns:
the new adapter.
See Also:
GraphEdge
** Generated **

createGraphNodeAdapter

public Adapter createGraphNodeAdapter()
Creates a new adapter for an object of class 'Graph Node'. 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.

Returns:
the new adapter.
See Also:
GraphNode
** Generated **

createGraphConnectorAdapter

public Adapter createGraphConnectorAdapter()
Creates a new adapter for an object of class 'Graph Connector'. 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.

Returns:
the new adapter.
See Also:
GraphConnector
** Generated **

createDiagramAdapter

public Adapter createDiagramAdapter()
Creates a new adapter for an object of class 'Diagram'. 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.

Returns:
the new adapter.
See Also:
Diagram
** Generated **

createSemanticModelBridgeAdapter

public Adapter createSemanticModelBridgeAdapter()
Creates a new adapter for an object of class 'Semantic Model Bridge'. 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.

Returns:
the new adapter.
See Also:
SemanticModelBridge
** Generated **

createEMFSemanticModelBridgeAdapter

public Adapter createEMFSemanticModelBridgeAdapter()
Creates a new adapter for an object of class 'EMF Semantic Model Bridge'. 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.

Returns:
the new adapter.
See Also:
EMFSemanticModelBridge
** Generated **

createSimpleSemanticModelElementAdapter

public Adapter createSimpleSemanticModelElementAdapter()
Creates a new adapter for an object of class 'Simple Semantic Model 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.

Returns:
the new adapter.
See Also:
SimpleSemanticModelElement
** Generated **

createDiagramLinkAdapter

public Adapter createDiagramLinkAdapter()
Creates a new adapter for an object of class 'Diagram Link'. 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.

Returns:
the new adapter.
See Also:
DiagramLink
** Generated **

createLeafElementAdapter

public Adapter createLeafElementAdapter()
Creates a new adapter for an object of class 'Leaf 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.

Returns:
the new adapter.
See Also:
LeafElement
** Generated **

createTextElementAdapter

public Adapter createTextElementAdapter()
Creates a new adapter for an object of class 'Text 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.

Returns:
the new adapter.
See Also:
TextElement
** Generated **

createImageAdapter

public Adapter createImageAdapter()
Creates a new adapter for an object of class 'Image'. 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.

Returns:
the new adapter.
See Also:
Image
** Generated **

createGraphicPrimitiveAdapter

public Adapter createGraphicPrimitiveAdapter()
Creates a new adapter for an object of class 'Graphic 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.

Returns:
the new adapter.
See Also:
GraphicPrimitive
** Generated **

createReferenceAdapter

public Adapter createReferenceAdapter()
Creates a new adapter for an object of class 'Reference'. 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.

Returns:
the new adapter.
See Also:
Reference
** Generated **

createPolylineAdapter

public Adapter createPolylineAdapter()
Creates a new adapter for an object of class 'Polyline'. 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.

Returns:
the new adapter.
See Also:
Polyline
** Generated **

createEllipseAdapter

public Adapter createEllipseAdapter()
Creates a new adapter for an object of class 'Ellipse'. 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.

Returns:
the new adapter.
See Also:
Ellipse
** Generated **

createEdgeObjectAdapter

public Adapter createEdgeObjectAdapter()
Creates a new adapter for an object of class 'Edge Object'. 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.

Returns:
the new adapter.
See Also:
EdgeObject
** Generated **

createEdgeObjectOffsetAdapter

public Adapter createEdgeObjectOffsetAdapter()
Creates a new adapter for an object of class 'Edge Object Offset'. 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.

Returns:
the new adapter.
See Also:
EdgeObjectOffset
** Generated **

createEdgeObjectUVAdapter

public Adapter createEdgeObjectUVAdapter()
Creates a new adapter for an object of class 'Edge Object UV'. 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.

Returns:
the new adapter.
See Also:
EdgeObjectUV
** Generated **

createEObjectAdapter

public Adapter createEObjectAdapter()
Creates a new adapter for the default case. This default implementation returns null.

Returns:
the new adapter.
** Generated **

Modelers

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.