Search in sources :

Example 1 with YTMapPropertyFilterDefinition

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

the class YamlBuilder method buildMapPropertyDefinition.

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

Aggregations

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