Class SourceAdapterFactory

java.lang.Object
org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
org.eclipse.gmt.modisco.omg.kdm.source.util.SourceAdapterFactory
All Implemented Interfaces:
org.eclipse.emf.common.notify.AdapterFactory

public class SourceAdapterFactory
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:
SourcePackage
  • Field Details

    • modelPackage

      protected static SourcePackage modelPackage
      The cached model package.
    • modelSwitch

      protected SourceSwitch<org.eclipse.emf.common.notify.Adapter> modelSwitch
      The switch that delegates to the createXXX methods.
  • Constructor Details

    • SourceAdapterFactory

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

    • 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 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.
      Overrides:
      createAdapter in class org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
      Parameters:
      target - the object to adapt.
      Returns:
      the adapter for the target.
    • createSourceRefAdapter

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

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

      public org.eclipse.emf.common.notify.Adapter createInventoryModelAdapter()
      Creates a new adapter for an object of class 'Inventory Model'. 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:
      InventoryModel
    • createAbstractInventoryElementAdapter

      public org.eclipse.emf.common.notify.Adapter createAbstractInventoryElementAdapter()
      Creates a new adapter for an object of class 'Abstract Inventory 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:
      AbstractInventoryElement
    • createInventoryItemAdapter

      public org.eclipse.emf.common.notify.Adapter createInventoryItemAdapter()
      Creates a new adapter for an object of class 'Inventory Item'. 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:
      InventoryItem
    • createSourceFileAdapter

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

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

      public org.eclipse.emf.common.notify.Adapter createResourceDescriptionAdapter()
      Creates a new adapter for an object of class 'Resource Description'. 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:
      ResourceDescription
    • createConfigurationAdapter

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

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

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

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

      public org.eclipse.emf.common.notify.Adapter createAbstractInventoryRelationshipAdapter()
      Creates a new adapter for an object of class 'Abstract Inventory Relationship'. 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:
      AbstractInventoryRelationship
    • createBinaryFileAdapter

      public org.eclipse.emf.common.notify.Adapter createBinaryFileAdapter()
      Creates a new adapter for an object of class 'Binary File'. 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:
      BinaryFile
    • createExecutableFileAdapter

      public org.eclipse.emf.common.notify.Adapter createExecutableFileAdapter()
      Creates a new adapter for an object of class 'Executable File'. 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:
      ExecutableFile
    • createDependsOnAdapter

      public org.eclipse.emf.common.notify.Adapter createDependsOnAdapter()
      Creates a new adapter for an object of class 'Depends On'. 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:
      DependsOn
    • createInventoryElementAdapter

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

      public org.eclipse.emf.common.notify.Adapter createInventoryRelationshipAdapter()
      Creates a new adapter for an object of class 'Inventory Relationship'. 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:
      InventoryRelationship
    • createElementAdapter

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

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

      public org.eclipse.emf.common.notify.Adapter createKDMFrameworkAdapter()
      Creates a new adapter for an object of class 'KDM Framework'. 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:
      KDMFramework
    • createKDMModelAdapter

      public org.eclipse.emf.common.notify.Adapter createKDMModelAdapter()
      Creates a new adapter for an object of class 'KDM Model'. 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:
      KDMModel
    • createKDMEntityAdapter

      public org.eclipse.emf.common.notify.Adapter createKDMEntityAdapter()
      Creates a new adapter for an object of class 'KDM Entity'. 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:
      KDMEntity
    • createKDMRelationshipAdapter

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