Package io.opencaesar.oml.resource
Class OmlJsonResourceFactory
java.lang.Object
org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl
io.opencaesar.oml.resource.OmlJsonResourceFactory
- All Implemented Interfaces:
org.eclipse.emf.ecore.resource.Resource.Factory
public class OmlJsonResourceFactory
extends org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl
The Json Resource Factory implementation for the model.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.resource.Resource.Factory
org.eclipse.emf.ecore.resource.Resource.Factory.Descriptor, org.eclipse.emf.ecore.resource.Resource.Factory.Registry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.emf.ecore.resource.Resource
createResource
(org.eclipse.emf.common.util.URI uri) static void
register()
Registers the factory with the OML XMI extensionstatic void
register
(boolean useCatalog) Registers the factory with the OML XMI extension
-
Constructor Details
-
OmlJsonResourceFactory
public OmlJsonResourceFactory() -
OmlJsonResourceFactory
public OmlJsonResourceFactory(boolean useCatalog) - Parameters:
useCatalog
- whether to use the catalog to (de)resolve cross references
-
-
Method Details
-
createResource
public org.eclipse.emf.ecore.resource.Resource createResource(org.eclipse.emf.common.util.URI uri) - Specified by:
createResource
in interfaceorg.eclipse.emf.ecore.resource.Resource.Factory
- Overrides:
createResource
in classorg.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl
-
register
public static void register()Registers the factory with the OML XMI extension -
register
public static void register(boolean useCatalog) Registers the factory with the OML XMI extension- Parameters:
useCatalog
- whether to use the catalog to (de)resolve cross references
-