@Test public void testIsValidate() { assertFalse(opt.isValidate()); opt.setValidate(true); assertTrue(opt.isValidate()); opt.setValidate(false); assertFalse(opt.isValidate()); }
@Override public void close() throws IOException { if (out != null) { out.writeBytes(xmlFragments.get(xmlFragments.size() - 1)); } if (getMetadataOptions().isValidate()) { try { MetadataRetrieve r = getMetadataRetrieve(); String omexml = service.getOMEXML(r); service.validateOMEXML(omexml); } catch (ServiceException | NullPointerException e) { LOGGER.warn("OMEXMLService unable to create OME-XML metadata object.", e); } } super.close(); xmlFragments = null; service = null; }
@Override public void close() throws IOException { if (out != null) { out.writeBytes(xmlFragments.get(xmlFragments.size() - 1)); } if (getMetadataOptions().isValidate()) { try { MetadataRetrieve r = getMetadataRetrieve(); String omexml = service.getOMEXML(r); service.validateOMEXML(omexml); } catch (ServiceException | NullPointerException e) { LOGGER.warn("OMEXMLService unable to create OME-XML metadata object.", e); } } super.close(); xmlFragments = null; service = null; }
if (getMetadataOptions().isValidate()) { service.validateOMEXML(xml);
if (getMetadataOptions().isValidate()) { service.validateOMEXML(xml);
setupService(); if (getMetadataOptions().isValidate()) { try { String omexml = service.getOMEXML((MetadataRetrieve)store);
setupService(); if (getMetadataOptions().isValidate()) { try { String omexml = service.getOMEXML((MetadataRetrieve)store);