Search in sources :

Example 1 with AttributeDefinition

use of org.eclipse.winery.model.tosca.extensions.kvproperties.AttributeDefinition in project winery by eclipse.

the class ToCanonical method convert.

public AttributeDefinition convert(YTAttributeDefinition node, String name) {
    AttributeDefinition attribute = new AttributeDefinition();
    attribute.setKey(name);
    attribute.setType(node.getType());
    attribute.setDescription(node.getDescription());
    attribute.setDefaultValue(ValueHelper.toString(node.getDefault()));
    return attribute;
}
Also used : AttributeDefinition(org.eclipse.winery.model.tosca.extensions.kvproperties.AttributeDefinition) YTAttributeDefinition(org.eclipse.winery.model.tosca.yaml.YTAttributeDefinition)

Aggregations

AttributeDefinition (org.eclipse.winery.model.tosca.extensions.kvproperties.AttributeDefinition)1 YTAttributeDefinition (org.eclipse.winery.model.tosca.yaml.YTAttributeDefinition)1