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
The Adapter Factory for the model.
It provides an adapter
createXXX method for each class of the model.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static SpartaModelPackageThe cached model package.protected SpartaModelSwitch<Adapter> The switch that delegates to thecreateXXXmethods. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a new adapter for an object of class 'Abstract Condition'.Creates a new adapter for an object of class 'Abstract Threat Type'.createAdapter(Notifier target) Creates an adapter for thetarget.Creates a new adapter for an object of class 'AImported Condition'.Creates a new adapter for an object of class 'And Composite Condition'.Creates a new adapter for an object of class 'And Composite Threat Type'.Creates a new adapter for an object of class 'Asset'.Creates a new adapter for an object of class 'Attacker Model'.Creates a new adapter for an object of class 'Attacker Profile'.Creates a new adapter for an object of class 'Composite Condition'.Creates a new adapter for an object of class 'Composite Threat Type'.Creates a new adapter for an object of class 'Condition'.Creates a new adapter for an object of class 'Condition List'.Creates a new adapter for an object of class 'Counter Measure'.Creates a new adapter for an object of class 'Data Flow'.Creates a new adapter for an object of class 'Data Flow Entity'.Creates a new adapter for an object of class 'Data Model'.Creates a new adapter for an object of class 'Data Model Element'.Creates a new adapter for an object of class 'Data Set'.Creates a new adapter for an object of class 'Data Store'.Creates a new adapter for an object of class 'Data Subject Type'.Creates a new adapter for an object of class 'Data Type'.Creates a new adapter for an object of class 'DFD Boundary Element'.Creates a new adapter for an object of class 'DFD Container'.Creates a new adapter for an object of class 'DFD Element'.Creates a new adapter for an object of class 'DFD Element Annotation'.Creates a new adapter for an object of class 'DFD Model'.Creates a new adapter for the default case.Creates a new adapter for an object of class 'Estimate'.Creates a new adapter for an object of class 'EString To EBoolean Map'.Creates a new adapter for an object of class 'EString To EString Map'.Creates a new adapter for an object of class 'External Entity'.Creates a new adapter for an object of class 'Flow Element'.Creates a new adapter for an object of class 'ICharacteristic'.Creates a new adapter for an object of class 'IModel Element Annotation'.Creates a new adapter for an object of class 'Imported Condition'.Creates a new adapter for an object of class 'Imported Threat Condition'.Creates a new adapter for an object of class 'KV Model Element Annotation'.Creates a new adapter for an object of class 'Model Element'.Creates a new adapter for an object of class 'Model Element Annotation'.Creates a new adapter for an object of class 'Multiple Composite Condition'.Creates a new adapter for an object of class 'Not Composite Condition'.Creates a new adapter for an object of class 'Or Composite Condition'.Creates a new adapter for an object of class 'Or Composite Threat Type'.Creates a new adapter for an object of class 'Personal Data Type'.Creates a new adapter for an object of class 'Process'.Creates a new adapter for an object of class 'Recipient Specifiable'.Creates a new adapter for an object of class 'Recipient Specification'.Creates a new adapter for an object of class 'Role'.Creates a new adapter for an object of class 'Role Binding'.Creates a new adapter for an object of class 'Security Annotation'.Creates a new adapter for an object of class 'Security Element'.Creates a new adapter for an object of class 'Sender Specifiable'.Creates a new adapter for an object of class 'Sender Specification'.Creates a new adapter for an object of class 'Single Composite Condition'.Creates a new adapter for an object of class 'Solution'.Creates a new adapter for an object of class 'Solution Type'.Creates a new adapter for an object of class 'Solution Type Catalog'.Creates a new adapter for an object of class 'Sparta Resource'.Creates a new adapter for an object of class 'Threat Pattern'.Creates a new adapter for an object of class 'Threat Specification'.Creates a new adapter for an object of class 'Threat Specification Catalog'.Creates a new adapter for an object of class 'Threat Type'.Creates a new adapter for an object of class 'Threat Type Catalog'.Creates a new adapter for an object of class 'Threat Type Group'.Creates a new adapter for an object of class 'Threat Type ID To Estimate Map'.Creates a new adapter for an object of class 'Threat Type To Estimate Map'.Creates a new adapter for an object of class 'Transformed Data'.Creates a new adapter for an object of class 'Trust Boundary Container'.booleanisFactoryForType(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
-
Field Details
-
modelPackage
The cached model package. -
modelSwitch
The switch that delegates to thecreateXXXmethods.
-
-
Constructor Details
-
SpartaModelAdapterFactory
public SpartaModelAdapterFactory()Creates an instance of the adapter factory.
-
-
Method Details
-
isFactoryForType
Returns whether this factory is applicable for the type of the object. This implementation returnstrueif the object is either the model's package or is an instance object of the model.- Specified by:
isFactoryForTypein interfaceAdapterFactory- Overrides:
isFactoryForTypein classAdapterFactoryImpl- Returns:
- whether this factory is applicable for the type of the object.
-
createAdapter
Creates an adapter for thetarget.- Overrides:
createAdapterin classAdapterFactoryImpl- Parameters:
target- the object to adapt.- Returns:
- the adapter for the
target.
-
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Creates a new adapter for the default case. This default implementation returns null.- Returns:
- the new adapter.
-