示例#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;
 }