Package org.eclipse.emf.ecore.xmi

Examples of org.eclipse.emf.ecore.xmi.XMLResource.unload()


    XMLResource resource = (XMLResource) targetObject.eResource();
    String authorID = resource.getID(targetObject);

    // Test : Reload the target object

    resource.unload();
    resource.load(null);

    // Verify : Check that the extrinsic ID was restored.

    EObject obj = resource.getContents().get(0);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.