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 Action implements INemoItem {
9 private String action_name;
10 private ActionValue value;
12 public Action(String action_name, ActionValue value) {
13 this.action_name = action_name;
18 public JSONObject toJSONObject() {
19 JSONObject actionJs = new JSONObject();
20 actionJs.put("action-name", action_name);
22 JSONObject js = new JSONObject();
23 js.put("string-value", value.getJs());
24 actionJs.put("parameter-values", js);