Search in sources :

Example 1 with ConstraintClauseKV

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;
}
Also used : ConstraintClauseKV(org.eclipse.winery.model.tosca.extensions.kvproperties.ConstraintClauseKV)

Aggregations

ConstraintClauseKV (org.eclipse.winery.model.tosca.extensions.kvproperties.ConstraintClauseKV)1