test_class.file: org.eclipse.winery.common/src/test/java/org/eclipse/winery/common/edmm/EdmmConverterTest.java
test_class.identifier: EdmmConverterTest
test_class.superclass: extends EdmmDependantTest
test_case.body: @Test
      void transformDerivedFrom() {
          // region *** build the TopologyTemplate ***
          TTopologyTemplate topology = new TTopologyTemplate();
          topology.addNodeTemplate(nodeTemplates.get("test_node_2"));
          // endregion
  
          TServiceTemplate serviceTemplate = new TServiceTemplate();
          serviceTemplate.setTopologyTemplate(topology);
  
          EdmmConverter edmmConverter = new EdmmConverter(nodeTypes, relationshipTypes, nodeTypeImplementations,
              relationshipTypeImplementations, artifactTemplates, edmmTypeExtendsMapping, edmm1to1Mapping);
          EntityGraph transform = edmmConverter.transform(serviceTemplate);
  
          assertNotNull(transform);
          assertEquals(9, transform.vertexSet().size());
          assertTrue(transform.vertexSet().stream().anyMatch(entity ->
              entity instanceof ScalarEntity
                  && entity.getName().equals("extends")
                  && ((ScalarEntity) entity).getValue().equals("software_component")));
      }
test_case.class_method_signature: EdmmConverterTest.transformDerivedFrom()
test_case.full_signature: @Test void transformDerivedFrom()
test_case.identifier: transformDerivedFrom
test_case.invocations: addNodeTemplate get setTopologyTemplate transform assertNotNull assertEquals size vertexSet assertTrue anyMatch stream vertexSet equals getName equals getValue
test_case.modifiers: @Test
test_case.parameters: ()
test_case.return: void
test_case.signature: void transformDerivedFrom()
focal_class.declarator: nodeTypes
focal_class.modifier: private final
focal_class.original_string: private final Map<QName, TNodeType> nodeTypes;
focal_class.type: Map<QName, TNodeType>
focal_class.var_name: nodeTypes
focal_class.declarator: relationshipTypes
focal_class.modifier: private final
focal_class.original_string: private final Map<QName, TRelationshipType> relationshipTypes;
focal_class.type: Map<QName, TRelationshipType>
focal_class.var_name: relationshipTypes
focal_class.declarator: nodeTypeImplementations
focal_class.modifier: private final
focal_class.original_string: private final Map<QName, TNodeTypeImplementation> nodeTypeImplementations;
focal_class.type: Map<QName, TNodeTypeImplementation>
focal_class.var_name: nodeTypeImplementations
focal_class.declarator: relationshipTypeImplementations
focal_class.modifier: private final
focal_class.original_string: private final Map<QName, TRelationshipTypeImplementation> relationshipTypeImplementations;
focal_class.type: Map<QName, TRelationshipTypeImplementation>
focal_class.var_name: relationshipTypeImplementations
focal_class.declarator: artifactTemplates
focal_class.modifier: private final
focal_class.original_string: private final Map<QName, TArtifactTemplate> artifactTemplates;
focal_class.type: Map<QName, TArtifactTemplate>
focal_class.var_name: artifactTemplates
focal_class.declarator: edmmTypeMappings
focal_class.modifier: private final
focal_class.original_string: private final Map<QName, EdmmType> edmmTypeMappings;
focal_class.type: Map<QName, EdmmType>
focal_class.var_name: edmmTypeMappings
focal_class.declarator: oneToOneMappings
focal_class.modifier: private final
focal_class.original_string: private final Map<QName, EdmmType> oneToOneMappings;
focal_class.type: Map<QName, EdmmType>
focal_class.var_name: oneToOneMappings
focal_class.declarator: useAbsolutePaths
focal_class.modifier: private final
focal_class.original_string: private final boolean useAbsolutePaths;
focal_class.type: boolean
focal_class.var_name: useAbsolutePaths
focal_class.file: org.eclipse.winery.common/src/main/java/org/eclipse/winery/common/edmm/EdmmConverter.java
focal_class.identifier: EdmmConverter
focal_class.class_method_signature: EdmmConverter.EdmmConverter(Map<QName, TNodeType> nodeTypes, Map<QName, TRelationshipType> relationshipTypes,
                           Map<QName, TNodeTypeImplementation> nodeTypeImplementations,
                           Map<QName, TRelationshipTypeImplementation> relationshipTypeImplementations,
                           Map<QName, TArtifactTemplate> artifactTemplates,
                           Map<QName, EdmmType> edmmTypeMappings, Map<QName, EdmmType> oneToOneMappings)
focal_class.full_signature: public  EdmmConverter(Map<QName, TNodeType> nodeTypes, Map<QName, TRelationshipType> relationshipTypes,
                           Map<QName, TNodeTypeImplementation> nodeTypeImplementations,
                           Map<QName, TRelationshipTypeImplementation> relationshipTypeImplementations,
                           Map<QName, TArtifactTemplate> artifactTemplates,
                           Map<QName, EdmmType> edmmTypeMappings, Map<QName, EdmmType> oneToOneMappings)
focal_class.identifier: EdmmConverter
focal_class.modifiers: public
focal_class.parameters: (Map<QName, TNodeType> nodeTypes, Map<QName, TRelationshipType> relationshipTypes,
                           Map<QName, TNodeTypeImplementation> nodeTypeImplementations,
                           Map<QName, TRelationshipTypeImplementation> relationshipTypeImplementations,
                           Map<QName, TArtifactTemplate> artifactTemplates,
                           Map<QName, EdmmType> edmmTypeMappings, Map<QName, EdmmType> oneToOneMappings)
focal_class.signature:  EdmmConverter(Map<QName, TNodeType> nodeTypes, Map<QName, TRelationshipType> relationshipTypes,
                           Map<QName, TNodeTypeImplementation> nodeTypeImplementations,
                           Map<QName, TRelationshipTypeImplementation> relationshipTypeImplementations,
                           Map<QName, TArtifactTemplate> artifactTemplates,
                           Map<QName, EdmmType> edmmTypeMappings, Map<QName, EdmmType> oneToOneMappings)
focal_class.class_method_signature: EdmmConverter.EdmmConverter(Map<QName, TNodeType> nodeTypes, Map<QName, TRelationshipType> relationshipTypes,
                           Map<QName, TNodeTypeImplementation> nodeTypeImplementations,
                           Map<QName, TRelationshipTypeImplementation> relationshipTypeImplementations,
                           Map<QName, TArtifactTemplate> artifactTemplates, Map<QName, EdmmType> edmmTypeMappings,
                           Map<QName, EdmmType> oneToOneMappings, boolean useAbsolutePaths)
focal_class.full_signature: public  EdmmConverter(Map<QName, TNodeType> nodeTypes, Map<QName, TRelationshipType> relationshipTypes,
                           Map<QName, TNodeTypeImplementation> nodeTypeImplementations,
                           Map<QName, TRelationshipTypeImplementation> relationshipTypeImplementations,
                           Map<QName, TArtifactTemplate> artifactTemplates, Map<QName, EdmmType> edmmTypeMappings,
                           Map<QName, EdmmType> oneToOneMappings, boolean useAbsolutePaths)
focal_class.identifier: EdmmConverter
focal_class.modifiers: public
focal_class.parameters: (Map<QName, TNodeType> nodeTypes, Map<QName, TRelationshipType> relationshipTypes,
                           Map<QName, TNodeTypeImplementation> nodeTypeImplementations,
                           Map<QName, TRelationshipTypeImplementation> relationshipTypeImplementations,
                           Map<QName, TArtifactTemplate> artifactTemplates, Map<QName, EdmmType> edmmTypeMappings,
                           Map<QName, EdmmType> oneToOneMappings, boolean useAbsolutePaths)
focal_class.signature:  EdmmConverter(Map<QName, TNodeType> nodeTypes, Map<QName, TRelationshipType> relationshipTypes,
                           Map<QName, TNodeTypeImplementation> nodeTypeImplementations,
                           Map<QName, TRelationshipTypeImplementation> relationshipTypeImplementations,
                           Map<QName, TArtifactTemplate> artifactTemplates, Map<QName, EdmmType> edmmTypeMappings,
                           Map<QName, EdmmType> oneToOneMappings, boolean useAbsolutePaths)
focal_class.class_method_signature: EdmmConverter.transform(TServiceTemplate serviceTemplate)
focal_class.full_signature: public EntityGraph transform(TServiceTemplate serviceTemplate)
focal_class.identifier: transform
focal_class.modifiers: public
focal_class.parameters: (TServiceTemplate serviceTemplate)
focal_class.return: EntityGraph
focal_class.signature: EntityGraph transform(TServiceTemplate serviceTemplate)
focal_class.class_method_signature: EdmmConverter.createRelation(TRelationshipTemplate relationship, EntityGraph entityGraph)
focal_class.full_signature: private void createRelation(TRelationshipTemplate relationship, EntityGraph entityGraph)
focal_class.identifier: createRelation
focal_class.modifiers: private
focal_class.parameters: (TRelationshipTemplate relationship, EntityGraph entityGraph)
focal_class.return: void
focal_class.signature: void createRelation(TRelationshipTemplate relationship, EntityGraph entityGraph)
focal_class.class_method_signature: EdmmConverter.createNode(TNodeTemplate nodeTemplate, EntityGraph entityGraph)
focal_class.full_signature: private void createNode(TNodeTemplate nodeTemplate, EntityGraph entityGraph)
focal_class.identifier: createNode
focal_class.modifiers: private
focal_class.parameters: (TNodeTemplate nodeTemplate, EntityGraph entityGraph)
focal_class.return: void
focal_class.signature: void createNode(TNodeTemplate nodeTemplate, EntityGraph entityGraph)
focal_class.class_method_signature: EdmmConverter.createArtifact(TNodeTemplate nodeTemplate, EntityId componentNodeId, EntityGraph entityGraph)
focal_class.full_signature: private void createArtifact(TNodeTemplate nodeTemplate, EntityId componentNodeId, EntityGraph entityGraph)
focal_class.identifier: createArtifact
focal_class.modifiers: private
focal_class.parameters: (TNodeTemplate nodeTemplate, EntityId componentNodeId, EntityGraph entityGraph)
focal_class.return: void
focal_class.signature: void createArtifact(TNodeTemplate nodeTemplate, EntityId componentNodeId, EntityGraph entityGraph)
focal_class.class_method_signature: EdmmConverter.createPathReferenceEntity(EntityGraph entityGraph, String givenPath, EntityId entityId)
focal_class.full_signature: private void createPathReferenceEntity(EntityGraph entityGraph, String givenPath, EntityId entityId)
focal_class.identifier: createPathReferenceEntity
focal_class.modifiers: private
focal_class.parameters: (EntityGraph entityGraph, String givenPath, EntityId entityId)
focal_class.return: void
focal_class.signature: void createPathReferenceEntity(EntityGraph entityGraph, String givenPath, EntityId entityId)
focal_class.class_method_signature: EdmmConverter.createProperties(TEntityTemplate toscaTemplate, EntityId componentNodeId, EntityGraph entityGraph)
focal_class.full_signature: private void createProperties(TEntityTemplate toscaTemplate, EntityId componentNodeId, EntityGraph entityGraph)
focal_class.identifier: createProperties
focal_class.modifiers: private
focal_class.parameters: (TEntityTemplate toscaTemplate, EntityId componentNodeId, EntityGraph entityGraph)
focal_class.return: void
focal_class.signature: void createProperties(TEntityTemplate toscaTemplate, EntityId componentNodeId, EntityGraph entityGraph)
focal_class.class_method_signature: EdmmConverter.createType(TEntityType toscaType, EntityId parentEntityId, EntityGraph entityGraph)
focal_class.full_signature: private EntityId createType(TEntityType toscaType, EntityId parentEntityId, EntityGraph entityGraph)
focal_class.identifier: createType
focal_class.modifiers: private
focal_class.parameters: (TEntityType toscaType, EntityId parentEntityId, EntityGraph entityGraph)
focal_class.return: EntityId
focal_class.signature: EntityId createType(TEntityType toscaType, EntityId parentEntityId, EntityGraph entityGraph)
focal_class.class_method_signature: EdmmConverter.createPropertiesDefinition(TEntityType toscaType, EntityId typeEntityId, EntityGraph entityGraph)
focal_class.full_signature: private void createPropertiesDefinition(TEntityType toscaType, EntityId typeEntityId, EntityGraph entityGraph)
focal_class.identifier: createPropertiesDefinition
focal_class.modifiers: private
focal_class.parameters: (TEntityType toscaType, EntityId typeEntityId, EntityGraph entityGraph)
focal_class.return: void
focal_class.signature: void createPropertiesDefinition(TEntityType toscaType, EntityId typeEntityId, EntityGraph entityGraph)
focal_class.class_method_signature: EdmmConverter.createOperations(TEntityType type, EntityId nodeTypeEntityId, EntityGraph entityGraph)
focal_class.full_signature: private void createOperations(TEntityType type, EntityId nodeTypeEntityId, EntityGraph entityGraph)
focal_class.identifier: createOperations
focal_class.modifiers: private
focal_class.parameters: (TEntityType type, EntityId nodeTypeEntityId, EntityGraph entityGraph)
focal_class.return: void
focal_class.signature: void createOperations(TEntityType type, EntityId nodeTypeEntityId, EntityGraph entityGraph)
focal_class.class_method_signature: EdmmConverter.getImplementationForOperation(TEntityTypeImplementation implementation,
                                                   String interfaceName, String operationName)
focal_class.full_signature: private String getImplementationForOperation(TEntityTypeImplementation implementation,
                                                   String interfaceName, String operationName)
focal_class.identifier: getImplementationForOperation
focal_class.modifiers: private
focal_class.parameters: (TEntityTypeImplementation implementation,
                                                   String interfaceName, String operationName)
focal_class.return: String
focal_class.signature: String getImplementationForOperation(TEntityTypeImplementation implementation,
                                                   String interfaceName, String operationName)
focal_class.class_method_signature: EdmmConverter.normalizeQName(QName qName)
focal_class.full_signature: private String normalizeQName(QName qName)
focal_class.identifier: normalizeQName
focal_class.modifiers: private
focal_class.parameters: (QName qName)
focal_class.return: String
focal_class.signature: String normalizeQName(QName qName)
focal_method.body: public EntityGraph transform(TServiceTemplate serviceTemplate) {
          EntityGraph entityGraph = new EntityGraph();
  
          List<TNodeTemplate> nodeTemplates = serviceTemplate.getTopologyTemplate().getNodeTemplates();
          List<TRelationshipTemplate> relationshipTemplates = serviceTemplate.getTopologyTemplate().getRelationshipTemplates();
          if (!nodeTemplates.isEmpty()) {
              entityGraph.addEntity(new MappingEntity(EntityGraph.COMPONENTS, entityGraph));
          }
  
          nodeTemplates.forEach(nodeTemplate -> createNode(nodeTemplate, entityGraph));
          relationshipTemplates.forEach(relationship -> createRelation(relationship, entityGraph));
  
          return entityGraph;
      }
focal_method.class_method_signature: EdmmConverter.transform(TServiceTemplate serviceTemplate)
focal_method.full_signature: public EntityGraph transform(TServiceTemplate serviceTemplate)
focal_method.identifier: transform
focal_method.invocations: getNodeTemplates getTopologyTemplate getRelationshipTemplates getTopologyTemplate isEmpty addEntity forEach createNode forEach createRelation
focal_method.modifiers: public
focal_method.parameters: (TServiceTemplate serviceTemplate)
focal_method.return: EntityGraph
focal_method.signature: EntityGraph transform(TServiceTemplate serviceTemplate)