test_class.file: org.eclipse.winery.repository.rest/src/test/java/org/eclipse/winery/repository/rest/resources/servicetemplates/topologytemplates/NodeTemplateResourceTest.java
test_class.identifier: NodeTemplateResourceTest
test_class.superclass: extends AbstractResourceTest
test_case.body: @Test
      public void addStateArtifactToNodeTemplate() throws Exception {
          this.setRevisionTo("origin/plain");
  
          Path filePath = MavenTestingUtils.getProjectFilePath("src/test/resources/servicetemplates/plan.zip");
          this.assertNoContentPost("servicetemplates/http%253A%252F%252Fplain.winery.opentosca.org%252Fservicetemplates/ServiceTemplateWithOneNodeTemplate_w1-wip1/"
                  + "topologytemplate/nodetemplates/NodeTypeWith5Versions_0_3.4-w3-wip1/state",
              filePath);
  
          TNodeTemplate nodeTemplate = getObjectFromGetRequest("servicetemplates/" +
                  "http%253A%252F%252Fplain.winery.opentosca.org%252Fservicetemplates/ServiceTemplateWithOneNodeTemplate_w1-wip1/" +
                  "topologytemplate/nodetemplates/NodeTypeWith5Versions_0_3.4-w3-wip1",
              TNodeTemplate.class
          );
  
          TDeploymentArtifacts deploymentArtifacts = nodeTemplate.getDeploymentArtifacts();
          assertNonNull(deploymentArtifacts);
          TDeploymentArtifact deploymentArtifact = deploymentArtifacts.getDeploymentArtifact("state");
          assertNonNull(deploymentArtifact);
          assertEquals(OpenToscaBaseTypes.stateArtifactType, deploymentArtifact.getArtifactType());
      }
test_case.class_method_signature: NodeTemplateResourceTest.addStateArtifactToNodeTemplate()
test_case.full_signature: @Test public void addStateArtifactToNodeTemplate()
test_case.identifier: addStateArtifactToNodeTemplate
test_case.invocations: setRevisionTo getProjectFilePath assertNoContentPost getObjectFromGetRequest getDeploymentArtifacts assertNonNull getDeploymentArtifact assertNonNull assertEquals getArtifactType
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void addStateArtifactToNodeTemplate()
focal_class.declarator: LOGGER = LoggerFactory.getLogger(NodeTemplateResource.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = LoggerFactory.getLogger(NodeTemplateResource.class);
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.declarator: qnameX = new QName(Namespaces.TOSCA_WINERY_EXTENSIONS_NAMESPACE, "x")
focal_class.modifier: private final
focal_class.original_string: private final QName qnameX = new QName(Namespaces.TOSCA_WINERY_EXTENSIONS_NAMESPACE, "x");
focal_class.type: QName
focal_class.var_name: qnameX
focal_class.declarator: qnameY = new QName(Namespaces.TOSCA_WINERY_EXTENSIONS_NAMESPACE, "y")
focal_class.modifier: private final
focal_class.original_string: private final QName qnameY = new QName(Namespaces.TOSCA_WINERY_EXTENSIONS_NAMESPACE, "y");
focal_class.type: QName
focal_class.var_name: qnameY
focal_class.declarator: nodeTemplate
focal_class.modifier: private final
focal_class.original_string: private final TNodeTemplate nodeTemplate;
focal_class.type: TNodeTemplate
focal_class.var_name: nodeTemplate
focal_class.file: org.eclipse.winery.repository.rest/src/main/java/org/eclipse/winery/repository/rest/resources/servicetemplates/topologytemplates/NodeTemplateResource.java
focal_class.identifier: NodeTemplateResource
focal_class.interfaces: implements INodeTemplateResourceOrNodeTypeImplementationResource
focal_class.class_method_signature: NodeTemplateResource.NodeTemplateResource(IIdDetermination<TNodeTemplate> idDetermination, TNodeTemplate o, int idx, List<TNodeTemplate> list, IPersistable res)
focal_class.full_signature: public  NodeTemplateResource(IIdDetermination<TNodeTemplate> idDetermination, TNodeTemplate o, int idx, List<TNodeTemplate> list, IPersistable res)
focal_class.identifier: NodeTemplateResource
focal_class.modifiers: public
focal_class.parameters: (IIdDetermination<TNodeTemplate> idDetermination, TNodeTemplate o, int idx, List<TNodeTemplate> list, IPersistable res)
focal_class.signature:  NodeTemplateResource(IIdDetermination<TNodeTemplate> idDetermination, TNodeTemplate o, int idx, List<TNodeTemplate> list, IPersistable res)
focal_class.class_method_signature: NodeTemplateResource.getDeploymentArtifacts()
focal_class.full_signature: @Path("deploymentartifacts/") public DeploymentArtifactsResource getDeploymentArtifacts()
focal_class.identifier: getDeploymentArtifacts
focal_class.modifiers: @Path("deploymentartifacts/") public
focal_class.parameters: ()
focal_class.return: DeploymentArtifactsResource
focal_class.signature: DeploymentArtifactsResource getDeploymentArtifacts()
focal_class.class_method_signature: NodeTemplateResource.postYamlArtifactFile(@PathParam("artifactId") String id)
focal_class.full_signature: @Path("yamlartifacts/{artifactId}") public GenericFileResource postYamlArtifactFile(@PathParam("artifactId") String id)
focal_class.identifier: postYamlArtifactFile
focal_class.modifiers: @Path("yamlartifacts/{artifactId}") public
focal_class.parameters: (@PathParam("artifactId") String id)
focal_class.return: GenericFileResource
focal_class.signature: GenericFileResource postYamlArtifactFile(@PathParam("artifactId") String id)
focal_class.class_method_signature: NodeTemplateResource.getMinInstances()
focal_class.full_signature: @GET @Path("minInstances") public String getMinInstances()
focal_class.identifier: getMinInstances
focal_class.modifiers: @GET @Path("minInstances") public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getMinInstances()
focal_class.class_method_signature: NodeTemplateResource.setMinInstances(@FormParam(value = "minInstances") String minInstances)
focal_class.full_signature: @PUT @Path("minInstances") public Response setMinInstances(@FormParam(value = "minInstances") String minInstances)
focal_class.identifier: setMinInstances
focal_class.modifiers: @PUT @Path("minInstances") public
focal_class.parameters: (@FormParam(value = "minInstances") String minInstances)
focal_class.return: Response
focal_class.signature: Response setMinInstances(@FormParam(value = "minInstances") String minInstances)
focal_class.class_method_signature: NodeTemplateResource.getMaxInstances()
focal_class.full_signature: @GET @Path("maxInstances") public String getMaxInstances()
focal_class.identifier: getMaxInstances
focal_class.modifiers: @GET @Path("maxInstances") public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getMaxInstances()
focal_class.class_method_signature: NodeTemplateResource.setMaxInstances(@FormParam(value = "maxInstances") String maxInstances)
focal_class.full_signature: @PUT @Path("maxInstances") public Response setMaxInstances(@FormParam(value = "maxInstances") String maxInstances)
focal_class.identifier: setMaxInstances
focal_class.modifiers: @PUT @Path("maxInstances") public
focal_class.parameters: (@FormParam(value = "maxInstances") String maxInstances)
focal_class.return: Response
focal_class.signature: Response setMaxInstances(@FormParam(value = "maxInstances") String maxInstances)
focal_class.class_method_signature: NodeTemplateResource.getX()
focal_class.full_signature: @Path("x") @GET @ApiOperation(value = "@return the x coordinate of the node template") public String getX()
focal_class.identifier: getX
focal_class.modifiers: @Path("x") @GET @ApiOperation(value = "@return the x coordinate of the node template") public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getX()
focal_class.class_method_signature: NodeTemplateResource.setX(String x)
focal_class.full_signature: @Path("x") @PUT public Response setX(String x)
focal_class.identifier: setX
focal_class.modifiers: @Path("x") @PUT public
focal_class.parameters: (String x)
focal_class.return: Response
focal_class.signature: Response setX(String x)
focal_class.class_method_signature: NodeTemplateResource.getY()
focal_class.full_signature: @Path("y") @GET @ApiOperation(value = "@return the y coordinate of the node template") public String getY()
focal_class.identifier: getY
focal_class.modifiers: @Path("y") @GET @ApiOperation(value = "@return the y coordinate of the node template") public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getY()
focal_class.class_method_signature: NodeTemplateResource.setY(String y)
focal_class.full_signature: @Path("y") @PUT public Response setY(String y)
focal_class.identifier: setY
focal_class.modifiers: @Path("y") @PUT public
focal_class.parameters: (String y)
focal_class.return: Response
focal_class.signature: Response setY(String y)
focal_class.class_method_signature: NodeTemplateResource.getNamespace()
focal_class.full_signature: @Override public Namespace getNamespace()
focal_class.identifier: getNamespace
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Namespace
focal_class.signature: Namespace getNamespace()
focal_class.class_method_signature: NodeTemplateResource.createStateElement(@FormDataParam("file") InputStream uploadedInputStream, @FormDataParam("file")
          FormDataContentDisposition fileDetail, @FormDataParam("file") FormDataBodyPart body, @Context UriInfo uriInfo)
focal_class.full_signature: @POST @Path("state") @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.MULTIPART_FORM_DATA) public Response createStateElement(@FormDataParam("file") InputStream uploadedInputStream, @FormDataParam("file")
          FormDataContentDisposition fileDetail, @FormDataParam("file") FormDataBodyPart body, @Context UriInfo uriInfo)
focal_class.identifier: createStateElement
focal_class.modifiers: @POST @Path("state") @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.MULTIPART_FORM_DATA) public
focal_class.parameters: (@FormDataParam("file") InputStream uploadedInputStream, @FormDataParam("file")
          FormDataContentDisposition fileDetail, @FormDataParam("file") FormDataBodyPart body, @Context UriInfo uriInfo)
focal_class.return: Response
focal_class.signature: Response createStateElement(@FormDataParam("file") InputStream uploadedInputStream, @FormDataParam("file")
          FormDataContentDisposition fileDetail, @FormDataParam("file") FormDataBodyPart body, @Context UriInfo uriInfo)
focal_class.class_method_signature: NodeTemplateResource.getServiceTemplateResource()
focal_class.full_signature: public ServiceTemplateResource getServiceTemplateResource()
focal_class.identifier: getServiceTemplateResource
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: ServiceTemplateResource
focal_class.signature: ServiceTemplateResource getServiceTemplateResource()
focal_class.class_method_signature: NodeTemplateResource.getHEAD()
focal_class.full_signature: @HEAD public Response getHEAD()
focal_class.identifier: getHEAD
focal_class.modifiers: @HEAD public
focal_class.parameters: ()
focal_class.return: Response
focal_class.signature: Response getHEAD()
focal_class.superclass: extends TEntityTemplateResource<TNodeTemplate>
focal_method.body: @Path("deploymentartifacts/")
      public DeploymentArtifactsResource getDeploymentArtifacts() {
          return new DeploymentArtifactsResource(this.o, this);
      }
focal_method.class_method_signature: NodeTemplateResource.getDeploymentArtifacts()
focal_method.full_signature: @Path("deploymentartifacts/") public DeploymentArtifactsResource getDeploymentArtifacts()
focal_method.identifier: getDeploymentArtifacts
focal_method.modifiers: @Path("deploymentartifacts/") public
focal_method.parameters: ()
focal_method.return: DeploymentArtifactsResource
focal_method.signature: DeploymentArtifactsResource getDeploymentArtifacts()