- java.lang.Object
-
- org.nasdanika.cli.CommandBase
-
- org.nasdanika.cli.ContextCommand
-
- org.nasdanika.cli.DelegatingCommand
-
- org.nasdanika.emf.ResourceSetCommand
-
- org.nasdanika.emf.ModelCommand<T>
-
- org.nasdanika.emf.AdapterModelCommand<EObject,SupplierFactory<T>>
-
- org.nasdanika.emf.SupplierModelCommand<T>
-
public abstract class SupplierModelCommand<T> extends AdapterModelCommand<EObject,SupplierFactory<T>>
Base class for commands which adapt models toSupplierFactory
and then combine supplier with output consumer and execute.- Author:
- Pavel
-
-
Field Summary
-
Fields inherited from class org.nasdanika.emf.ModelCommand
uri
-
-
Constructor Summary
Constructors Constructor Description SupplierModelCommand()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected CommandFactory
createCommandFactory(SupplierFactory<T> adapter)
protected abstract ConsumerFactory<? super T>
createOutputConsumerFactory()
protected Class<SupplierFactory<T>>
getAdapterType()
-
Methods inherited from class org.nasdanika.emf.AdapterModelCommand
getConsumerFactory
-
Methods inherited from class org.nasdanika.emf.ModelCommand
createSupplier, dumpDiagnostic, getCommandFactory, reportException
-
Methods inherited from class org.nasdanika.emf.ResourceSetCommand
createEmptyResourceSet, createResourceSet, getEPackages
-
Methods inherited from class org.nasdanika.cli.DelegatingCommand
call, createContext
-
Methods inherited from class org.nasdanika.cli.ContextCommand
getContextBuilders, load, loadJson, loadProperties, loadYaml, newContext
-
-
-
-
Constructor Detail
-
SupplierModelCommand
public SupplierModelCommand()
-
-
Method Detail
-
getAdapterType
protected Class<SupplierFactory<T>> getAdapterType()
- Specified by:
getAdapterType
in classAdapterModelCommand<EObject,SupplierFactory<T>>
- Returns:
- Type of the adapter used to execute the model.
-
createCommandFactory
protected CommandFactory createCommandFactory(SupplierFactory<T> adapter)
- Specified by:
createCommandFactory
in classAdapterModelCommand<EObject,SupplierFactory<T>>
-
createOutputConsumerFactory
protected abstract ConsumerFactory<? super T> createOutputConsumerFactory()
- Returns:
- Factory for output consumer to combine with supplier to create a command.
-
-