Search in sources :

Example 1 with TImplementation

use of org.eclipse.winery.model.tosca.TImplementation in project winery by eclipse.

the class ToCanonical method convert.

private TImplementation convert(YTImplementation node) {
    if (Objects.isNull(node)) {
        return null;
    }
    TImplementation def = new TImplementation();
    def.setPrimary(node.getPrimaryArtifactName());
    def.setDependencies(node.getDependencyArtifactNames());
    def.setTimeout(node.getTimeout());
    def.setOperationHost(node.getOperationHost());
    return def;
}
Also used : TImplementation(org.eclipse.winery.model.tosca.TImplementation) YTImplementation(org.eclipse.winery.model.tosca.yaml.YTImplementation)

Aggregations

TImplementation (org.eclipse.winery.model.tosca.TImplementation)1 YTImplementation (org.eclipse.winery.model.tosca.yaml.YTImplementation)1