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.ResourcecreateResource(org.eclipse.emf.common.util.URI uri) static voidregister()Registers the factory with the OML XMI extensionstatic voidregister(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:
createResourcein interfaceorg.eclipse.emf.ecore.resource.Resource.Factory- Overrides:
createResourcein 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
-