@Test public void testDeserialize() throws Exception { Template template = TemplateDeserializer.deserialize(getClass().getClassLoader().getResourceAsStream( "adl15/template/openEHR-EHR-COMPOSITION.mini_vitals.v1.adlt")); assertThat(template.getOverlays()).hasSize(2); assertThat(template.getOverlays().get(0).getArchetypeId().getValue()) .isEqualTo("openEHR-EHR-OBSERVATION.ovl-a-blood_pressure-001.v1.0.0"); assertThat(template.getOverlays().get(1).getArchetypeId().getValue()) .isEqualTo("openEHR-EHR-OBSERVATION.ovl-a-respiration-001.v1.0.0"); }
public static Template deserialize(InputStream adltStream) throws IOException { try (Reader r = new BomSupportingReader(adltStream, Charsets.UTF_8)) { String adltContents = CharStreams.toString(r); return deserialize(adltContents); } }
TemplateDeserializer { public static Template deserialize(InputStream adltStream) throws IOException { try (Reader r = new BomSupportingReader(adltStream, Charsets.UTF_8)) { String adltContents = CharStreams.toString(r); return deserialize(adltContents); } } }
TemplateDeserializer { public static Template deserialize(InputStream adltStream) throws IOException { try (Reader r = new BomSupportingReader(adltStream, Charsets.UTF_8)) { String adltContents = CharStreams.toString(r); return deserialize(adltContents); } }  }
TemplateDeserializer { public static Template deserialize(InputStream adltStream) throws IOException { try (Reader r = new BomSupportingReader(adltStream, Charsets.UTF_8)) { String adltContents = CharStreams.toString(r); return deserialize(adltContents); } }  static Template deserialize(InputStream adltStream); static Template deserialize(String adltContent); }
TemplateDeserializer { public static Template deserialize(InputStream adltStream) throws IOException { try (Reader r = new BomSupportingReader(adltStream, Charsets.UTF_8)) { String adltContents = CharStreams.toString(r); return deserialize(adltContents); } }  static Template deserialize(InputStream adltStream); static Template deserialize(String adltContent);  }