예제 #1
0
  public boolean hasOutputObject(String id) {

    for (DataObject output : outputs) {
      if (output.getId().equals(id)) return true;
    }
    return false;
  }
예제 #2
0
  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);
  }
예제 #3
0
 public boolean hasInputObject(String id) {
   for (DataObject input : inputs) {
     if (input.getId().equals(id)) return true;
   }
   return false;
 }