Search in sources :

Example 1 with TOperationDefinition

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;
}
Also used : YTOperationDefinition(org.eclipse.winery.model.tosca.yaml.YTOperationDefinition) TOperationDefinition(org.eclipse.winery.model.tosca.TOperationDefinition)

Aggregations

TOperationDefinition (org.eclipse.winery.model.tosca.TOperationDefinition)1 YTOperationDefinition (org.eclipse.winery.model.tosca.yaml.YTOperationDefinition)1