Reading Objects

Some APIS exist to manipulate objects from their unique identifier.

Find an Object of the Model from its unique identifier

EObject object = xmlResource.getEObject(objectId);

Find the unique identifier of an Object

String objectId = object.eResource().getURIFragment(object);

Related concept
Diagram Interchange

Related tasks
Managing Diagram
Writing Diagram Properties

Related reference
MDAccess for UML API Reference
MDAccess for MagicDraw API Reference
DiagramProperties