public interface EPackageToGraphMapper
EPackages to the graph, and reading the
ChronoEPackageRegistry from the graph.| Modifier and Type | Method and Description |
|---|---|
void |
deleteInGraph(org.chronos.chronograph.api.structure.ChronoGraph graph,
EPackageBundle bundle)
Removes the graph representation of the given
EPackageBundle, as well as all EObjects that are
instances of the classifiers contained within the bundle. |
void |
mapToGraph(org.chronos.chronograph.api.structure.ChronoGraph graph,
EPackageBundle bundle)
Maps the contents of the given
EPackageBundle into the given ChronoGraph. |
ChronoEPackageRegistry |
readChronoEPackageRegistryFromGraph(org.chronos.chronograph.api.structure.ChronoGraph graph)
Reads the contents of the given
ChronoEPackageRegistry from the graph. |
void mapToGraph(org.chronos.chronograph.api.structure.ChronoGraph graph,
EPackageBundle bundle)
EPackageBundle into the given ChronoGraph.
After this operation, the contents of the graph will fully reflect the contents of the given
EPackageBundle. The graph will be adapted, the bundle is treated as read-only.
/!\ WARNING: If an EClass or (sub-) package was removed, the instances will be deleted as well!
graph - The graph to map the EPackageBundle into. Must not be null. Must be self-contained.bundle - The bundle to synchronize with the graph. Will be treated as read-only. Must not be null.ChronoEPackageRegistry readChronoEPackageRegistryFromGraph(org.chronos.chronograph.api.structure.ChronoGraph graph)
ChronoEPackageRegistry from the graph.graph - The graph to read from. Must not be null.ChronoEPackageRegistry. Never null.void deleteInGraph(org.chronos.chronograph.api.structure.ChronoGraph graph,
EPackageBundle bundle)
EPackageBundle, as well as all EObjects that are
instances of the classifiers contained within the bundle.
This is an expensive operation. Use with care.
graph - The graph to perform the deletion in. Must not be null.bundle - The EPackageBundle to delete in the graph. Must not be null.