@Test public void testGetActivityConfigurationSchema() { assertTrue(factory.getActivityConfigurationSchema() instanceof JsonNode); }
@Override public JsonNode getActivityConfigurationSchema() { ObjectMapper objectMapper = new ObjectMapper(); try { return objectMapper.readTree(getClass().getResource("/schema.json")); } catch (IOException e) { return objectMapper.createObjectNode(); } }
SpreadsheetImportActivityFactory implements ActivityFactory { @Override public JsonNode getActivityConfigurationSchema() { ObjectMapper objectMapper = new ObjectMapper(); try { return objectMapper.readTree(getClass().getResource("/schema.json")); } catch (IOException e) { return objectMapper.createObjectNode(); } } }
SpreadsheetImportActivityFactory implements ActivityFactory { @Override public JsonNode getActivityConfigurationSchema() { ObjectMapper objectMapper = new ObjectMapper(); try { return objectMapper.readTree(getClass().getResource("/schema.json")); } catch (IOException e) { return objectMapper.createObjectNode(); } }  }
SpreadsheetImportActivityFactory implements ActivityFactory { @Override public JsonNode getActivityConfigurationSchema() { ObjectMapper objectMapper = new ObjectMapper(); try { return objectMapper.readTree(getClass().getResource("/schema.json")); } catch (IOException e) { return objectMapper.createObjectNode(); } }  @Override SpreadsheetImportActivity createActivity(); @Override URI getActivityType(); @Override JsonNode getActivityConfigurationSchema(); @Override Set<ActivityInputPort> getInputPorts(JsonNode configuration); @Override Set<ActivityOutputPort> getOutputPorts(JsonNode configuration); void setEdits(Edits edits); }
SpreadsheetImportActivityFactory implements ActivityFactory { @Override public JsonNode getActivityConfigurationSchema() { ObjectMapper objectMapper = new ObjectMapper(); try { return objectMapper.readTree(getClass().getResource("/schema.json")); } catch (IOException e) { return objectMapper.createObjectNode(); } }  @Override SpreadsheetImportActivity createActivity(); @Override URI getActivityType(); @Override JsonNode getActivityConfigurationSchema(); @Override Set<ActivityInputPort> getInputPorts(JsonNode configuration); @Override Set<ActivityOutputPort> getOutputPorts(JsonNode configuration); void setEdits(Edits edits);  }