use of org.eclipse.winery.model.tosca.yaml.YTAttributeDefinition 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;
}
Aggregations