test_class.file: iiif-presentation-frontend-impl-commandline/src/test/java/de/digitalcollections/iiif/presentation/frontend/impl/commandline/v2/ManifestGeneratorTest.java
test_class.identifier: ManifestGeneratorTest
test_case.body: @Test
    public void testGenerateJson() throws JsonProcessingException {
      String urlPrefix = "http://localhost:10000/test";
      Manifest manifest = new ManifestImpl(URI.create(urlPrefix + "/demo/bookreader/manifest.json"), new PropertyValueSimpleImpl("Walters MS 168"));
  
      List<Sequence> sequences = new ArrayList<>();
      manifest.setSequences(sequences);
  
      Sequence seq1 = new SequenceImpl(new PropertyValueSimpleImpl("Current page order"));
      seq1.setId(urlPrefix + "/demo/bookreader/normal");
      sequences.add(seq1);
  
      List<Canvas> canvases = new ArrayList<>();
      seq1.setCanvases(canvases);
  
      addPage(urlPrefix, canvases);
  
      ManifestGenerator mg = new ManifestGenerator();
      String json = mg.generateJson(manifest);
      System.out.println(json);
      Assert.assertTrue(json.contains("{"));
    }
test_case.class_method_signature: ManifestGeneratorTest.testGenerateJson()
test_case.full_signature: @Test public void testGenerateJson()
test_case.identifier: testGenerateJson
test_case.invocations: create setSequences setId add setCanvases addPage generateJson println assertTrue contains
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGenerateJson()
focal_class.file: iiif-presentation-frontend-impl-commandline/src/main/java/de/digitalcollections/iiif/presentation/frontend/impl/commandline/v2/ManifestGenerator.java
focal_class.identifier: ManifestGenerator
focal_class.class_method_signature: ManifestGenerator.main(String[] args)
focal_class.full_signature: public static void main(String[] args)
focal_class.identifier: main
focal_class.modifiers: public static
focal_class.parameters: (String[] args)
focal_class.return: void
focal_class.signature: void main(String[] args)
focal_class.class_method_signature: ManifestGenerator.generateManifest(final String imageDirectoryName, final List<Path> files)
focal_class.full_signature: private static void generateManifest(final String imageDirectoryName, final List<Path> files)
focal_class.identifier: generateManifest
focal_class.modifiers: private static
focal_class.parameters: (final String imageDirectoryName, final List<Path> files)
focal_class.return: void
focal_class.signature: void generateManifest(final String imageDirectoryName, final List<Path> files)
focal_class.class_method_signature: ManifestGenerator.addPage(String urlPrefix, String imageDirectoryName, List<Canvas> canvases, int pageCounter, Path file)
focal_class.full_signature: private static void addPage(String urlPrefix, String imageDirectoryName, List<Canvas> canvases, int pageCounter, Path file)
focal_class.identifier: addPage
focal_class.modifiers: private static
focal_class.parameters: (String urlPrefix, String imageDirectoryName, List<Canvas> canvases, int pageCounter, Path file)
focal_class.return: void
focal_class.signature: void addPage(String urlPrefix, String imageDirectoryName, List<Canvas> canvases, int pageCounter, Path file)
focal_class.class_method_signature: ManifestGenerator.ManifestGenerator()
focal_class.full_signature: public  ManifestGenerator()
focal_class.identifier: ManifestGenerator
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  ManifestGenerator()
focal_class.class_method_signature: ManifestGenerator.generateJson(Manifest manifest)
focal_class.full_signature: public String generateJson(Manifest manifest)
focal_class.identifier: generateJson
focal_class.modifiers: public
focal_class.parameters: (Manifest manifest)
focal_class.return: String
focal_class.signature: String generateJson(Manifest manifest)
focal_method.body: public String generateJson(Manifest manifest) throws JsonProcessingException {
      ObjectMapper mapper = new IiifPresentationApiObjectMapper();
      String json = mapper.writerWithDefaultPrettyPrinter().writeValueAsString(manifest);
      return json;
    }
focal_method.class_method_signature: ManifestGenerator.generateJson(Manifest manifest)
focal_method.full_signature: public String generateJson(Manifest manifest)
focal_method.identifier: generateJson
focal_method.invocations: writeValueAsString writerWithDefaultPrettyPrinter
focal_method.modifiers: public
focal_method.parameters: (Manifest manifest)
focal_method.return: String
focal_method.signature: String generateJson(Manifest manifest)