コード例 #1
0
 private List<String> fetchInstancesFromObjectPool(
     final List<String> containementTreeUUIDs, final Map<String, String> treeInstances) {
   final List<String> nonObjectPoolUUIDs = new ArrayList<String>();
   for (final String uuid : containementTreeUUIDs) {
     if (objectPool.hasArtifact(uuid)) {
       treeInstances.put(uuid.toString(), (String) objectPool.getArtifact(uuid).getContent());
     } else {
       nonObjectPoolUUIDs.add(uuid);
     }
   }
   return nonObjectPoolUUIDs;
 }
コード例 #2
0
 private void serializeNodePath(
     final Serializer serializer,
     final ChangesetNode node,
     final List<String> serializedInstances) {
   final Set set = node.getSet();
   if (set.properClass().isEqualTo(S23MKernel.coreGraphs.vertex)) {
     final String content = serializer.serializeInstance(set, false).getContent();
     serializedInstances.add(content);
     final UUID uuid = node.getSet().identity().uniqueRepresentationReference();
     objectPool.addArtifact(
         uuid.toString(),
         new ObjectPoolArtifact(
             uuid,
             S23MKernel.coreGraphs.graph.identity().uniqueRepresentationReference(),
             content));
     for (final ChangesetNode childNode : node.getChildNodes()) {
       serializeNodePath(serializer, childNode, serializedInstances);
     }
   }
 }