java.lang.Object
org.palladiosimulator.experimentautomation.application.utils.EcoreHelper

public class EcoreHelper extends Object
  • Constructor Details

    • EcoreHelper

      public EcoreHelper()
  • Method Details

    • copy

      public static <T extends EObject> T copy(T source)
      Creates a deep copy of the source object and creates a new UUID for each Identifier instance contained in the containment hierarchy of the copied object.
      Type Parameters:
      T - Type of the EObject.
      Parameters:
      source - the object that is to be copied.
      Returns:
      Copy of the source object.
    • findModelElementById

      public static EObject findModelElementById(ResourceSet resourceSet, String id)
    • loadResourceFromBundle

      public static <T extends EClass> EObject loadResourceFromBundle(ResourceSet resourceSet, org.osgi.framework.Bundle bundle, IPath modelLocation, T expectedType)