70d59928c5ee292df57bc879de980763b8bd512c
[sdc/sdc-workflow-designer.git] /
1 /**\r
2  * Copyright (c) 2018 ZTE Corporation.\r
3  * All rights reserved. This program and the accompanying materials\r
4  * are made available under the Apache License, Version 2.0\r
5  * and the Eclipse Public License v1.0 which both accompany this distribution,\r
6  * and are available at http://www.eclipse.org/legal/epl-v10.html\r
7  * and http://www.apache.org/licenses/LICENSE-2.0\r
8  *\r
9  * Contributors:\r
10  *     ZTE - initial API and implementation and/or initial documentation\r
11  */\r
12 package org.onap.sdc.workflowdesigner.resources.entity;\r
13 \r
14 import java.util.Map;\r
15 \r
16 import com.fasterxml.jackson.annotation.JsonProperty;\r
17 import com.google.gson.annotations.SerializedName;\r
18 \r
19 /**\r
20  *\r
21  */\r
22 public class Content {\r
23   @JsonProperty(value="class") // for dropwizard's Jackson\r
24   @SerializedName("class")  // for Gson\r
25   public String clazz;\r
26   \r
27   private String script;\r
28   \r
29   private String scriptFormat;\r
30   \r
31   private Map<String, InputOutput> inputs;\r
32   \r
33   private Map<String, InputOutput> outputs;\r
34   \r
35 \r
36   /**\r
37    * @return the script\r
38    */\r
39   public String getScript() {\r
40     return script;\r
41   }\r
42 \r
43   /**\r
44    * @param script the script to set\r
45    */\r
46   public void setScript(String script) {\r
47     this.script = script;\r
48   }\r
49 \r
50   /**\r
51    * @return the scriptFormat\r
52    */\r
53   public String getScriptFormat() {\r
54     return scriptFormat;\r
55   }\r
56 \r
57   /**\r
58    * @param scriptFormat the scriptFormat to set\r
59    */\r
60   public void setScriptFormat(String scriptFormat) {\r
61     this.scriptFormat = scriptFormat;\r
62   }\r
63 \r
64   /**\r
65    * @return the inputs\r
66    */\r
67   public Map<String, InputOutput> getInputs() {\r
68     return inputs;\r
69   }\r
70 \r
71   /**\r
72    * @param inputs the inputs to set\r
73    */\r
74   public void setInputs(Map<String, InputOutput> inputs) {\r
75     this.inputs = inputs;\r
76   }\r
77 \r
78   /**\r
79    * @return the outputs\r
80    */\r
81   public Map<String, InputOutput> getOutputs() {\r
82     return outputs;\r
83   }\r
84 \r
85   /**\r
86    * @param outputs the outputs to set\r
87    */\r
88   public void setOutputs(Map<String, InputOutput> outputs) {\r
89     this.outputs = outputs;\r
90   }\r
91 \r
92 }\r