Class SpartaModelAdapterFactory

java.lang.Object
org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
be.kuleuven.cs.distrinet.sparta.spartamodel.util.SpartaModelAdapterFactory
All Implemented Interfaces:
AdapterFactory
Direct Known Subclasses:
SpartaModelItemProviderAdapterFactory

public class SpartaModelAdapterFactory extends AdapterFactoryImpl
The Adapter Factory for the model. It provides an adapter createXXX method for each class of the model.
See Also:
  • Field Details

  • Constructor Details

    • SpartaModelAdapterFactory

      public SpartaModelAdapterFactory()
      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 AdapterFactory
      Overrides:
      isFactoryForType in class AdapterFactoryImpl
      Returns:
      whether this factory is applicable for the type of the object.
    • 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.
    • createDataFlowAdapter

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

      public Adapter createDataFlowEntityAdapter()
      Creates a new adapter for an object of class 'Data Flow 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:
    • createExternalEntityAdapter

      public Adapter createExternalEntityAdapter()
      Creates a new adapter for an object of class 'External 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:
    • createProcessAdapter

      public Adapter createProcessAdapter()
      Creates a new adapter for an object of class 'Process'. 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:
    • createDataStoreAdapter

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

      public Adapter createDFDModelAdapter()
      Creates a new adapter for an object of class 'DFD 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:
    • createDFDElementAdapter

      public Adapter createDFDElementAdapter()
      Creates a new adapter for an object of class 'DFD 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:
    • createSecurityElementAdapter

      public Adapter createSecurityElementAdapter()
      Creates a new adapter for an object of class 'Security 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:
    • createDFDBoundaryElementAdapter

      public Adapter createDFDBoundaryElementAdapter()
      Creates a new adapter for an object of class 'DFD Boundary 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:
    • createTrustBoundaryContainerAdapter

      public Adapter createTrustBoundaryContainerAdapter()
      Creates a new adapter for an object of class 'Trust Boundary 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:
    • createSenderSpecifiableAdapter

      public Adapter createSenderSpecifiableAdapter()
      Creates a new adapter for an object of class 'Sender Specifiable'. 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:
    • createRecipientSpecifiableAdapter

      public Adapter createRecipientSpecifiableAdapter()
      Creates a new adapter for an object of class 'Recipient Specifiable'. 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:
    • createSenderSpecificationAdapter

      public Adapter createSenderSpecificationAdapter()
      Creates a new adapter for an object of class 'Sender Specification'. 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:
    • createRecipientSpecificationAdapter

      public Adapter createRecipientSpecificationAdapter()
      Creates a new adapter for an object of class 'Recipient Specification'. 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:
    • createFlowElementAdapter

      public Adapter createFlowElementAdapter()
      Creates a new adapter for an object of class 'Flow 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:
    • createDFDContainerAdapter

      public Adapter createDFDContainerAdapter()
      Creates a new adapter for an object of class 'DFD 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:
    • createSecurityAnnotationAdapter

      public Adapter createSecurityAnnotationAdapter()
      Creates a new adapter for an object of class 'Security Annotation'. 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:
    • createSolutionTypeAdapter

      public Adapter createSolutionTypeAdapter()
      Creates a new adapter for an object of class 'Solution 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:
    • createRoleAdapter

      public Adapter createRoleAdapter()
      Creates a new adapter for an object of class 'Role'. 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:
    • createAbstractThreatTypeAdapter

      public Adapter createAbstractThreatTypeAdapter()
      Creates a new adapter for an object of class 'Abstract Threat 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:
    • createCounterMeasureAdapter

      public Adapter createCounterMeasureAdapter()
      Creates a new adapter for an object of class 'Counter Measure'. 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:
    • createRoleBindingAdapter

      public Adapter createRoleBindingAdapter()
      Creates a new adapter for an object of class 'Role Binding'. 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:
    • createSolutionAdapter

      public Adapter createSolutionAdapter()
      Creates a new adapter for an object of class 'Solution'. 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:
    • createSpartaResourceAdapter

      public Adapter createSpartaResourceAdapter()
      Creates a new adapter for an object of class 'Sparta Resource'. 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:
    • createThreatTypeCatalogAdapter

      public Adapter createThreatTypeCatalogAdapter()
      Creates a new adapter for an object of class 'Threat Type Catalog'. 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:
    • createSolutionTypeCatalogAdapter

      public Adapter createSolutionTypeCatalogAdapter()
      Creates a new adapter for an object of class 'Solution Type Catalog'. 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:
    • createEStringToEBooleanMapAdapter

      public Adapter createEStringToEBooleanMapAdapter()
      Creates a new adapter for an object of class 'EString To EBoolean Map'. 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:
    • createThreatSpecificationAdapter

      public Adapter createThreatSpecificationAdapter()
      Creates a new adapter for an object of class 'Threat Specification'. 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:
    • createThreatSpecificationCatalogAdapter

      public Adapter createThreatSpecificationCatalogAdapter()
      Creates a new adapter for an object of class 'Threat Specification Catalog'. 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:
    • createAssetAdapter

      public Adapter createAssetAdapter()
      Creates a new adapter for an object of class 'Asset'. 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:
    • createCompositeThreatTypeAdapter

      public Adapter createCompositeThreatTypeAdapter()
      Creates a new adapter for an object of class 'Composite Threat 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:
    • createThreatTypeAdapter

      public Adapter createThreatTypeAdapter()
      Creates a new adapter for an object of class 'Threat 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:
    • createEstimateAdapter

      public Adapter createEstimateAdapter()
      Creates a new adapter for an object of class 'Estimate'. 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:
    • createThreatTypeToEstimateMapAdapter

      public Adapter createThreatTypeToEstimateMapAdapter()
      Creates a new adapter for an object of class 'Threat Type To Estimate Map'. 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:
    • createEStringToEStringMapAdapter

      public Adapter createEStringToEStringMapAdapter()
      Creates a new adapter for an object of class 'EString To EString Map'. 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:
    • createModelElementAdapter

      public 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:
    • createOrCompositeThreatTypeAdapter

      public Adapter createOrCompositeThreatTypeAdapter()
      Creates a new adapter for an object of class 'Or Composite Threat 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:
    • createAndCompositeThreatTypeAdapter

      public Adapter createAndCompositeThreatTypeAdapter()
      Creates a new adapter for an object of class 'And Composite Threat 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:
    • createThreatTypeGroupAdapter

      public Adapter createThreatTypeGroupAdapter()
      Creates a new adapter for an object of class 'Threat Type Group'. 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:
    • createAbstractConditionAdapter

      public Adapter createAbstractConditionAdapter()
      Creates a new adapter for an object of class 'Abstract Condition'. 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:
    • createCompositeConditionAdapter

      public Adapter createCompositeConditionAdapter()
      Creates a new adapter for an object of class 'Composite Condition'. 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:
    • createConditionAdapter

      public Adapter createConditionAdapter()
      Creates a new adapter for an object of class 'Condition'. 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:
    • createAndCompositeConditionAdapter

      public Adapter createAndCompositeConditionAdapter()
      Creates a new adapter for an object of class 'And Composite Condition'. 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:
    • createOrCompositeConditionAdapter

      public Adapter createOrCompositeConditionAdapter()
      Creates a new adapter for an object of class 'Or Composite Condition'. 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:
    • createNotCompositeConditionAdapter

      public Adapter createNotCompositeConditionAdapter()
      Creates a new adapter for an object of class 'Not Composite Condition'. 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:
    • createSingleCompositeConditionAdapter

      public Adapter createSingleCompositeConditionAdapter()
      Creates a new adapter for an object of class 'Single Composite Condition'. 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:
    • createMultipleCompositeConditionAdapter

      public Adapter createMultipleCompositeConditionAdapter()
      Creates a new adapter for an object of class 'Multiple Composite Condition'. 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:
    • createConditionListAdapter

      public Adapter createConditionListAdapter()
      Creates a new adapter for an object of class 'Condition List'. 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:
    • createAImportedConditionAdapter

      public Adapter createAImportedConditionAdapter()
      Creates a new adapter for an object of class 'AImported Condition'. 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:
    • createImportedThreatConditionAdapter

      public Adapter createImportedThreatConditionAdapter()
      Creates a new adapter for an object of class 'Imported Threat Condition'. 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:
    • createImportedConditionAdapter

      public Adapter createImportedConditionAdapter()
      Creates a new adapter for an object of class 'Imported Condition'. 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:
    • createDFDElementAnnotationAdapter

      public Adapter createDFDElementAnnotationAdapter()
      Creates a new adapter for an object of class 'DFD Element Annotation'. 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:
    • createAttackerModelAdapter

      public Adapter createAttackerModelAdapter()
      Creates a new adapter for an object of class 'Attacker 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:
    • createAttackerProfileAdapter

      public Adapter createAttackerProfileAdapter()
      Creates a new adapter for an object of class 'Attacker Profile'. 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:
    • createICharacteristicAdapter

      public Adapter createICharacteristicAdapter()
      Creates a new adapter for an object of class 'ICharacteristic'. 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:
    • createDataModelAdapter

      public Adapter createDataModelAdapter()
      Creates a new adapter for an object of class 'Data 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:
    • 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:
    • createTransformedDataAdapter

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

      public Adapter createDataModelElementAdapter()
      Creates a new adapter for an object of class 'Data 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:
    • createDataSubjectTypeAdapter

      public Adapter createDataSubjectTypeAdapter()
      Creates a new adapter for an object of class 'Data Subject 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:
    • createPersonalDataTypeAdapter

      public Adapter createPersonalDataTypeAdapter()
      Creates a new adapter for an object of class 'Personal 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:
    • createDataSetAdapter

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

      public Adapter createIModelElementAnnotationAdapter()
      Creates a new adapter for an object of class 'IModel Element Annotation'. 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:
    • createKVModelElementAnnotationAdapter

      public Adapter createKVModelElementAnnotationAdapter()
      Creates a new adapter for an object of class 'KV Model Element Annotation'. 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:
    • createModelElementAnnotationAdapter

      public Adapter createModelElementAnnotationAdapter()
      Creates a new adapter for an object of class 'Model Element Annotation'. 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:
    • createThreatPatternAdapter

      public Adapter createThreatPatternAdapter()
      Creates a new adapter for an object of class 'Threat Pattern'. 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:
    • createThreatTypeIDToEstimateMapAdapter

      public Adapter createThreatTypeIDToEstimateMapAdapter()
      Creates a new adapter for an object of class 'Threat Type ID To Estimate Map'. 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:
    • createEObjectAdapter

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