use of org.eclipse.winery.model.tosca.TOperationDefinition in project winery by eclipse.
the class ToCanonical method convert.
private TOperationDefinition convert(YTOperationDefinition node, String id) {
if (Objects.isNull(node)) {
return null;
}
TOperationDefinition def = new TOperationDefinition();
def.setId(id);
def.setName(id);
def.setDescription(node.getDescription());
def.setInputs(convert(node.getInputs()));
def.setOutputs(convert(node.getOutputs()));
def.setImplementation(convert(node.getImplementation()));
return def;
}
Aggregations