1 package org.opendaylight.nemo.tool.eclipse.plugin.rest.actions.model;
3 import org.json.JSONObject;
6 * Created by hj on 10/29/15.
8 public class Match implements INemoItem{
9 private String matchName;
10 private MatchValue value;
12 public Match(String matchName, MatchValue value) {
13 this.matchName = matchName;
18 public JSONObject toJSONObject() {
19 JSONObject matchJs = new JSONObject();
20 matchJs.put("match-item-name",matchName);
21 JSONObject js = new JSONObject();
22 js.put("string-value", value.getValue());
23 matchJs.put("match-item-value",js);