use of org.eclipse.winery.model.tosca.yaml.support.YTListString in project winery by eclipse.
the class YamlBuilder method buildStringList.
@Nullable
public YTListString buildStringList(Object object, Parameter<YTListString> parameter) {
if (Objects.isNull(object)) {
return null;
}
@SuppressWarnings("unchecked") List<String> tmp = (List<String>) object;
YTListString stringList = new YTListString();
stringList.addAll(tmp);
return stringList;
}
Aggregations