Search in sources :

Example 1 with YTListString

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;
}
Also used : List(java.util.List) ArrayList(java.util.ArrayList) YTListString(org.eclipse.winery.model.tosca.yaml.support.YTListString) YTListString(org.eclipse.winery.model.tosca.yaml.support.YTListString) Nullable(org.eclipse.jdt.annotation.Nullable)

Aggregations

ArrayList (java.util.ArrayList)1 List (java.util.List)1 Nullable (org.eclipse.jdt.annotation.Nullable)1 YTListString (org.eclipse.winery.model.tosca.yaml.support.YTListString)1