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
    Constructor
    Description
     
    OmlJsonResourceFactory(boolean useCatalog)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.eclipse.emf.ecore.resource.Resource
    createResource(org.eclipse.emf.common.util.URI uri)
     
    static void
    Registers the factory with the OML XMI extension
    static void
    register(boolean useCatalog)
    Registers the factory with the OML XMI extension

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 interface org.eclipse.emf.ecore.resource.Resource.Factory
      Overrides:
      createResource in class org.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