Class ModelAdapterFactory

java.lang.Object
org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
org.eclipse.epf.diagram.model.util.ModelAdapterFactory
All Implemented Interfaces:
org.eclipse.emf.common.notify.AdapterFactory

public class ModelAdapterFactory
extends org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
The Adapter Factory for the model. It provides an adapter createXXX method for each class of the model.
See Also:
ModelPackage
  • Constructor Details

    • ModelAdapterFactory

      public ModelAdapterFactory()
      Creates an instance of the adapter factory.
  • Method Details

    • 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 org.eclipse.emf.common.notify.AdapterFactory
      Overrides:
      isFactoryForType in class org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
      Returns:
      whether this factory is applicable for the type of the object.
    • createAdapter

      public org.eclipse.emf.common.notify.Adapter createAdapter​(org.eclipse.emf.common.notify.Notifier target)
      Creates an adapter for the target.
      Parameters:
      target - the object to adapt.
      Returns:
      the adapter for the target.
    • createDiagramAdapter

      public org.eclipse.emf.common.notify.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
    • createLinkAdapter

      public org.eclipse.emf.common.notify.Adapter createLinkAdapter()
      Creates a new adapter for an object of class '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:
      Link
    • createLinkedObjectAdapter

      public org.eclipse.emf.common.notify.Adapter createLinkedObjectAdapter()
      Creates a new adapter for an object of class 'Linked 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:
      LinkedObject
    • createNamedNodeAdapter

      public org.eclipse.emf.common.notify.Adapter createNamedNodeAdapter()
      Creates a new adapter for an object of class 'Named 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:
      NamedNode
    • createNodeAdapter

      public org.eclipse.emf.common.notify.Adapter createNodeAdapter()
      Creates a new adapter for an object of class '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:
      Node
    • createActivityDiagramAdapter

      public org.eclipse.emf.common.notify.Adapter createActivityDiagramAdapter()
      Creates a new adapter for an object of class 'Activity 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:
      ActivityDiagram
    • createTypedNodeAdapter

      public org.eclipse.emf.common.notify.Adapter createTypedNodeAdapter()
      Creates a new adapter for an object of class 'Typed 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:
      TypedNode
    • createWorkProductDependencyDiagramAdapter

      public org.eclipse.emf.common.notify.Adapter createWorkProductDependencyDiagramAdapter()
      Creates a new adapter for an object of class 'Work Product Dependency 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:
      WorkProductDependencyDiagram
    • createWorkProductNodeAdapter

      public org.eclipse.emf.common.notify.Adapter createWorkProductNodeAdapter()
      Creates a new adapter for an object of class 'Work Product 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:
      WorkProductNode
    • createActivityDetailDiagramAdapter

      public org.eclipse.emf.common.notify.Adapter createActivityDetailDiagramAdapter()
      Creates a new adapter for an object of class 'Activity Detail 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:
      ActivityDetailDiagram
    • createNodeContainerAdapter

      public org.eclipse.emf.common.notify.Adapter createNodeContainerAdapter()
      Creates a new adapter for an object of class 'Node Container'. 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:
      NodeContainer
    • createRoleNodeAdapter

      public org.eclipse.emf.common.notify.Adapter createRoleNodeAdapter()
      Creates a new adapter for an object of class 'Role 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:
      RoleNode
    • createRoleTaskCompositeAdapter

      public org.eclipse.emf.common.notify.Adapter createRoleTaskCompositeAdapter()
      Creates a new adapter for an object of class 'Role Task Composite'. 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:
      RoleTaskComposite
    • createTaskNodeAdapter

      public org.eclipse.emf.common.notify.Adapter createTaskNodeAdapter()
      Creates a new adapter for an object of class 'Task 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:
      TaskNode
    • createWorkProductDescriptorNodeAdapter

      public org.eclipse.emf.common.notify.Adapter createWorkProductDescriptorNodeAdapter()
      Creates a new adapter for an object of class 'Work Product Descriptor 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:
      WorkProductDescriptorNode
    • createWorkBreakdownElementNodeAdapter

      public org.eclipse.emf.common.notify.Adapter createWorkBreakdownElementNodeAdapter()
      Creates a new adapter for an object of class 'Work Breakdown Element 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:
      WorkBreakdownElementNode
    • createWorkProductCompositeAdapter

      public org.eclipse.emf.common.notify.Adapter createWorkProductCompositeAdapter()
      Creates a new adapter for an object of class 'Work Product Composite'. 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:
      WorkProductComposite
    • createEObjectAdapter

      public org.eclipse.emf.common.notify.Adapter createEObjectAdapter()
      Creates a new adapter for the default case. This default implementation returns null.
      Returns:
      the new adapter.