Search in sources :

Example 1 with YTMapObject

use of org.eclipse.winery.model.tosca.yaml.support.YTMapObject in project winery by eclipse.

the class YamlBuilder method buildMapObjectValue.

@Nullable
public YTMapObject buildMapObjectValue(Object object, Parameter<YTMapObject> parameter) {
    if (Objects.isNull(object)) {
        return null;
    }
    YTMapObject result = new YTMapObject();
    put(result, stringValue(parameter.getValue()), object);
    return result;
}
Also used : YTMapObject(org.eclipse.winery.model.tosca.yaml.support.YTMapObject) Nullable(org.eclipse.jdt.annotation.Nullable)

Aggregations

Nullable (org.eclipse.jdt.annotation.Nullable)1 YTMapObject (org.eclipse.winery.model.tosca.yaml.support.YTMapObject)1