Collection<ServiceOperation> operations = template.getAllServiceOperations();
if((operations!=null)&&(operations.size()>0)){
//Iterate over all serviceOperations
Iterator<ServiceOperation> itOperations = operations.iterator();
while(itOperations.hasNext()){
ServiceOperation operation = itOperations.next();
TreeNodeBase nodeOp = new TreeNodeBase("operation",operation.getName(), operation.getName(), false);
//att leaf nodes with properties
nodeOp.getChildren().add(new TreeNodeBase("OpDescription",operation.getDescription(),true));
nodeOp.getChildren().add(new TreeNodeBase("OutputObjectType",operation.getOutputObjectType(),true));
nodeOp.getChildren().add(new TreeNodeBase("ServiceOperationType",operation.getServiceOperationType(),true));
nodeOp.getChildren().add(new TreeNodeBase("maxInputFiles",operation.getMaxSupportedInputFiles()+"",true));
nodeOp.getChildren().add(new TreeNodeBase("minReqFiles",operation.getMinRequiredInputFiles()+"",true));
//add nodeOp to ServiceTemplate
nodeServiceTemplate.getChildren().add(nodeOp);
}
}