org.graphdrawing.graphml.util
Class GraphMLAdapterFactory

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
      extended by org.graphdrawing.graphml.util.GraphMLAdapterFactory
All Implemented Interfaces:
AdapterFactory

public class GraphMLAdapterFactory
extends AdapterFactoryImpl

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

See Also:
GraphMLPackage
Rating red
Generated:
This code was automatically generated.

Field Summary
protected static GraphMLPackage modelPackage
          The cached model package.
protected  GraphMLSwitch<Adapter> modelSwitch
          The switch that delegates to the createXXX methods.
 
Constructor Summary
GraphMLAdapterFactory()
          Creates an instance of the adapter factory.
 
Method Summary
 Adapter createAdapter(Notifier target)
          Creates an adapter for the target.
 Adapter createDataExtensionTypeAdapter()
          Creates a new adapter for an object of class 'Data Extension Type'.
 Adapter createDataTypeAdapter()
          Creates a new adapter for an object of class 'Data Type'.
 Adapter createDefaultTypeAdapter()
          Creates a new adapter for an object of class 'Default Type'.
 Adapter createDocumentRootAdapter()
          Creates a new adapter for an object of class 'Document Root'.
 Adapter createEdgeTypeAdapter()
          Creates a new adapter for an object of class 'Edge Type'.
 Adapter createEndpointTypeAdapter()
          Creates a new adapter for an object of class 'Endpoint Type'.
 Adapter createEObjectAdapter()
          Creates a new adapter for the default case.
 Adapter createGraphmlTypeAdapter()
          Creates a new adapter for an object of class 'Graphml Type'.
 Adapter createGraphTypeAdapter()
          Creates a new adapter for an object of class 'Graph Type'.
 Adapter createHyperedgeTypeAdapter()
          Creates a new adapter for an object of class 'Hyperedge Type'.
 Adapter createKeyTypeAdapter()
          Creates a new adapter for an object of class 'Key Type'.
 Adapter createLocatorTypeAdapter()
          Creates a new adapter for an object of class 'Locator Type'.
 Adapter createNodeTypeAdapter()
          Creates a new adapter for an object of class 'Node Type'.
 Adapter createPortTypeAdapter()
          Creates a new adapter for an object of class 'Port Type'.
 boolean isFactoryForType(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

modelPackage

protected static GraphMLPackage modelPackage
The cached model package.

Generated:
This code was automatically generated.

modelSwitch

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

Generated:
This code was automatically generated.
Constructor Detail

GraphMLAdapterFactory

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

Generated:
This code was automatically generated.
Method Detail

isFactoryForType

public boolean isFactoryForType(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:
This code was automatically 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:
This code was automatically generated.

createDataExtensionTypeAdapter

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

Returns:
the new adapter.
See Also:
DataExtensionType
Generated:
This code was automatically generated.

createDataTypeAdapter

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

Returns:
the new adapter.
See Also:
DataType
Generated:
This code was automatically generated.

createDefaultTypeAdapter

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

Returns:
the new adapter.
See Also:
DefaultType
Generated:
This code was automatically generated.

createDocumentRootAdapter

public Adapter createDocumentRootAdapter()
Creates a new adapter for an object of class 'Document Root'. 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:
DocumentRoot
Generated:
This code was automatically generated.

createEdgeTypeAdapter

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

Returns:
the new adapter.
See Also:
EdgeType
Generated:
This code was automatically generated.

createEndpointTypeAdapter

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

Returns:
the new adapter.
See Also:
EndpointType
Generated:
This code was automatically generated.

createGraphmlTypeAdapter

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

Returns:
the new adapter.
See Also:
GraphmlType
Generated:
This code was automatically generated.

createGraphTypeAdapter

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

Returns:
the new adapter.
See Also:
GraphType
Generated:
This code was automatically generated.

createHyperedgeTypeAdapter

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

Returns:
the new adapter.
See Also:
HyperedgeType
Generated:
This code was automatically generated.

createKeyTypeAdapter

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

Returns:
the new adapter.
See Also:
KeyType
Generated:
This code was automatically generated.

createLocatorTypeAdapter

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

Returns:
the new adapter.
See Also:
LocatorType
Generated:
This code was automatically generated.

createNodeTypeAdapter

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

Returns:
the new adapter.
See Also:
NodeType
Generated:
This code was automatically generated.

createPortTypeAdapter

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

Returns:
the new adapter.
See Also:
PortType
Generated:
This code was automatically generated.

createEObjectAdapter

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

Returns:
the new adapter.
Generated:
This code was automatically generated.