Class ModuleProviderRegistryImpl
- java.lang.Object
-
- org.eclipse.emf.ecore.util.Switch<T>
-
- tools.mdsd.somde.realm.guicebased.util.GuiceBasedRealmSwitch<Optional<com.google.inject.Module>>
-
- tools.mdsd.somde.realm.guicebased.impl.ModuleProviderRegistryImpl
-
- All Implemented Interfaces:
ModuleProviderRegistry
public class ModuleProviderRegistryImpl extends GuiceBasedRealmSwitch<Optional<com.google.inject.Module>> implements ModuleProviderRegistry
-
-
Field Summary
-
Fields inherited from class tools.mdsd.somde.realm.guicebased.util.GuiceBasedRealmSwitch
modelPackage
-
-
Constructor Summary
Constructors Constructor Description ModuleProviderRegistryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<com.google.inject.Module>
caseConfigurationItem(ConfigurationItem object)
Returns the result of interpreting the object as an instance of 'Configuration Item'.Optional<com.google.inject.Module>
caseModuleImport(ModuleImport object)
Returns the result of interpreting the object as an instance of 'Module Import'.Optional<com.google.inject.Module>
defaultCase(EObject object)
Returns the result of interpreting the object as an instance of 'EObject'.Optional<com.google.inject.Module>
lookupModule(ConfigurationItem item)
-
Methods inherited from class tools.mdsd.somde.realm.guicebased.util.GuiceBasedRealmSwitch
doSwitch, isSwitchFor
-
-
-
-
Method Detail
-
lookupModule
public Optional<com.google.inject.Module> lookupModule(ConfigurationItem item)
- Specified by:
lookupModule
in interfaceModuleProviderRegistry
-
defaultCase
public Optional<com.google.inject.Module> defaultCase(EObject object)
Description copied from class:GuiceBasedRealmSwitch
Returns the result of interpreting the object as an instance of 'EObject'. This implementation returns null; returning a non-null result will terminate the switch, but this is the last case anyway.- Overrides:
defaultCase
in classGuiceBasedRealmSwitch<Optional<com.google.inject.Module>>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'EObject'.
- See Also:
Switch.doSwitch(org.eclipse.emf.ecore.EObject)
-
caseConfigurationItem
public Optional<com.google.inject.Module> caseConfigurationItem(ConfigurationItem object)
Description copied from class:GuiceBasedRealmSwitch
Returns the result of interpreting the object as an instance of 'Configuration Item'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseConfigurationItem
in classGuiceBasedRealmSwitch<Optional<com.google.inject.Module>>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Configuration Item'.
- See Also:
doSwitch(EObject)
-
caseModuleImport
public Optional<com.google.inject.Module> caseModuleImport(ModuleImport object)
Description copied from class:GuiceBasedRealmSwitch
Returns the result of interpreting the object as an instance of 'Module Import'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseModuleImport
in classGuiceBasedRealmSwitch<Optional<com.google.inject.Module>>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Module Import'.
- See Also:
doSwitch(EObject)
-
-