Class EcoreHelper
java.lang.Object
org.palladiosimulator.experimentautomation.application.utils.EcoreHelper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends EObject>
Tcopy
(T source) Creates a deep copy of the source object and creates a new UUID for eachIdentifier
instance contained in the containment hierarchy of the copied object.static EObject
findModelElementById
(ResourceSet resourceSet, String id) loadResourceFromBundle
(ResourceSet resourceSet, org.osgi.framework.Bundle bundle, IPath modelLocation, T expectedType)
-
Constructor Details
-
EcoreHelper
public EcoreHelper()
-
-
Method Details
-
copy
Creates a deep copy of the source object and creates a new UUID for eachIdentifier
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
-
loadResourceFromBundle
public static <T extends EClass> EObject loadResourceFromBundle(ResourceSet resourceSet, org.osgi.framework.Bundle bundle, IPath modelLocation, T expectedType)
-