public boolean hasOutputObject(String id) { for (DataObject output : outputs) { if (output.getId().equals(id)) return true; } return false; }
public String getOutputName(String name) throws Exception { for (DataObject output : outputs) { if (output.getId().equals(name)) return output.getName(); } throw new Exception("This template does not contain an output property called " + name); }
public boolean hasInputObject(String id) { for (DataObject input : inputs) { if (input.getId().equals(id)) return true; } return false; }