test_class.file: org.eclipse.winery.repository.rest/src/test/java/org/eclipse/winery/repository/rest/resources/imports/xsdimports/XSDImportResourceTest.java
test_class.identifier: XSDImportResourceTest
test_class.superclass: extends AbstractResourceTest
test_case.body: @Test
      public void getAllDeclaredElementsLocalNames() throws Exception {
          this.setRevisionTo("b827889c9a3e2e2af338190a66f6e61ab284fbf1");
          this.assertGet("imports/http%253A%252F%252Fwww.w3.org%252F2001%252FXMLSchema/https%253A%252F%252Fwww.w3schools.com%252Fxml%252Fschema_example.asp/ShipOrderProperties/alldeclaredelementslocalnames", "imports/w3c_schema_example_all_declared_elements_local_names.json");
      }
test_case.class_method_signature: XSDImportResourceTest.getAllDeclaredElementsLocalNames()
test_case.full_signature: @Test public void getAllDeclaredElementsLocalNames()
test_case.identifier: getAllDeclaredElementsLocalNames
test_case.invocations: setRevisionTo assertGet
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void getAllDeclaredElementsLocalNames()
focal_class.declarator: LOGGER = LoggerFactory.getLogger(XSDImportResource.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = LoggerFactory.getLogger(XSDImportResource.class);
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.file: org.eclipse.winery.repository.rest/src/main/java/org/eclipse/winery/repository/rest/resources/imports/xsdimports/XSDImportResource.java
focal_class.identifier: XSDImportResource
focal_class.class_method_signature: XSDImportResource.XSDImportResource(XSDImportId id)
focal_class.full_signature: public  XSDImportResource(XSDImportId id)
focal_class.identifier: XSDImportResource
focal_class.modifiers: public
focal_class.parameters: (XSDImportId id)
focal_class.signature:  XSDImportResource(XSDImportId id)
focal_class.class_method_signature: XSDImportResource.createNewElement()
focal_class.full_signature: @Override protected TExtensibleElements createNewElement()
focal_class.identifier: createNewElement
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: TExtensibleElements
focal_class.signature: TExtensibleElements createNewElement()
focal_class.class_method_signature: XSDImportResource.getXSD()
focal_class.full_signature: @GET @ApiOperation(value = "May be used by the modeler to generate an XML editor based on the XML schema") // we cannot use "MimeTypes.MIMETYPE_XSD" here as the latter is "text/xml" and org.eclipse.winery.repository.resources.AbstractComponentInstanceResource.getDefinitionsAsResponse() also produces text/xml @Produces("text/xsd") public Response getXSD()
focal_class.identifier: getXSD
focal_class.modifiers: @GET @ApiOperation(value = "May be used by the modeler to generate an XML editor based on the XML schema") // we cannot use "MimeTypes.MIMETYPE_XSD" here as the latter is "text/xml" and org.eclipse.winery.repository.resources.AbstractComponentInstanceResource.getDefinitionsAsResponse() also produces text/xml @Produces("text/xsd") public
focal_class.parameters: ()
focal_class.return: Response
focal_class.signature: Response getXSD()
focal_class.class_method_signature: XSDImportResource.getAllDeclaredElementsLocalNames()
focal_class.full_signature: @GET @Path("alldeclaredelementslocalnames") public List<String> getAllDeclaredElementsLocalNames()
focal_class.identifier: getAllDeclaredElementsLocalNames
focal_class.modifiers: @GET @Path("alldeclaredelementslocalnames") public
focal_class.parameters: ()
focal_class.return: List<String>
focal_class.signature: List<String> getAllDeclaredElementsLocalNames()
focal_class.class_method_signature: XSDImportResource.getAllDefinedTypesLocalNames()
focal_class.full_signature: @GET @Path("alldefinedtypeslocalnames") public List<String> getAllDefinedTypesLocalNames()
focal_class.identifier: getAllDefinedTypesLocalNames
focal_class.modifiers: @GET @Path("alldefinedtypeslocalnames") public
focal_class.parameters: ()
focal_class.return: List<String>
focal_class.signature: List<String> getAllDefinedTypesLocalNames()
focal_class.superclass: extends GenericImportResource
focal_method.body: @GET
      @Path("alldeclaredelementslocalnames")
      public List<String> getAllDeclaredElementsLocalNames() {
          return RepositoryFactory.getRepository().getXsdImportManager().getAllDeclaredElementsLocalNames().stream()
              .filter(namespaceAndDefinedLocalNames -> namespaceAndDefinedLocalNames.getNamespace().equals(id.getNamespace()))
              .flatMap(namespaceAndDefinedLocalNames -> namespaceAndDefinedLocalNames.getDefinedLocalNames().stream())
              .sorted()
              .collect(Collectors.toList());
      }
focal_method.class_method_signature: XSDImportResource.getAllDeclaredElementsLocalNames()
focal_method.full_signature: @GET @Path("alldeclaredelementslocalnames") public List<String> getAllDeclaredElementsLocalNames()
focal_method.identifier: getAllDeclaredElementsLocalNames
focal_method.invocations: collect sorted flatMap filter stream getAllDeclaredElementsLocalNames getXsdImportManager getRepository equals getNamespace getNamespace stream getDefinedLocalNames toList
focal_method.modifiers: @GET @Path("alldeclaredelementslocalnames") public
focal_method.parameters: ()
focal_method.return: List<String>
focal_method.signature: List<String> getAllDeclaredElementsLocalNames()