- java.lang.Object
-
- org.nasdanika.cli.CommandBase
-
- org.nasdanika.cli.ContextCommand
-
- org.nasdanika.cli.DelegatingCommand
-
- org.nasdanika.emf.ResourceSetCommand
-
- Direct Known Subclasses:
ModelCommand
public abstract class ResourceSetCommand extends DelegatingCommand
Base class for commands which useResourceSet
. This command creates a resource set, registers all known packages, loads resources specified with -r option.- Author:
- Pavel
-
-
Constructor Summary
Constructors Constructor Description ResourceSetCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ResourceSet
createEmptyResourceSet()
Creates aResourceSet
with all known packages registered and withXMIResourceFactoryImpl
protected ResourceSet
createResourceSet()
Creates an empty resource set with registered packages andXMIResourceFactoryImpl
and loads resource to it.protected Collection<EPackage>
getEPackages()
-
Methods inherited from class org.nasdanika.cli.DelegatingCommand
call, createContext, getCommandFactory, reportException
-
Methods inherited from class org.nasdanika.cli.ContextCommand
getContextBuilders, load, loadJson, loadProperties, loadYaml, newContext
-
-
-
-
Constructor Detail
-
ResourceSetCommand
public ResourceSetCommand()
-
-
Method Detail
-
getEPackages
protected Collection<EPackage> getEPackages()
- Returns:
EPackage
's to register with the resource set for loading the model. This implementation returns all registered packages.
-
createResourceSet
protected ResourceSet createResourceSet()
Creates an empty resource set with registered packages andXMIResourceFactoryImpl
and loads resource to it.- Returns:
-
createEmptyResourceSet
protected ResourceSet createEmptyResourceSet()
Creates aResourceSet
with all known packages registered and withXMIResourceFactoryImpl
- Returns:
-
-