use of org.eclipse.winery.model.tosca.extensions.kvproperties.ConstraintClauseKV in project winery by eclipse.
the class ToCanonical method convert.
/**
* converts TOSCA YAML constraints to Winery XML constraints
*
* @param constraint TOSCA YAML constrains
* @return Winery XML constraint
*/
private ConstraintClauseKV convert(YTConstraintClause constraint) {
ConstraintClauseKV con = new ConstraintClauseKV();
con.setKey(constraint.getKey());
con.setValue(constraint.getValue());
con.setList(constraint.getList());
return con;
}
Aggregations