2a49ae07bc56eb0a6f5508de2fa73858e38ebdf9
[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.JsonInclude;\r
17 import com.fasterxml.jackson.annotation.JsonInclude.Include;\r
18 import com.fasterxml.jackson.annotation.JsonProperty;\r
19 import com.google.gson.annotations.SerializedName;\r
20 \r
21 /**\r
22  *\r
23  */\r
24 @JsonInclude(Include.NON_NULL)\r
25 public class Content {\r
26   @JsonProperty(value="class") // for dropwizard's Jackson\r
27   @SerializedName("class")  // for Gson\r
28   public String clazz;\r
29   \r
30   private String script;\r
31   \r
32   private String scriptFormat;\r
33   \r
34   private Map<String, InputOutput> inputs;\r
35   \r
36   private Map<String, InputOutput> outputs;\r
37   \r
38 \r
39   /**\r
40    * @return the script\r
41    */\r
42   public String getScript() {\r
43     return script;\r
44   }\r
45 \r
46   /**\r
47    * @param script the script to set\r
48    */\r
49   public void setScript(String script) {\r
50     this.script = script;\r
51   }\r
52 \r
53   /**\r
54    * @return the scriptFormat\r
55    */\r
56   public String getScriptFormat() {\r
57     return scriptFormat;\r
58   }\r
59 \r
60   /**\r
61    * @param scriptFormat the scriptFormat to set\r
62    */\r
63   public void setScriptFormat(String scriptFormat) {\r
64     this.scriptFormat = scriptFormat;\r
65   }\r
66 \r
67   /**\r
68    * @return the inputs\r
69    */\r
70   public Map<String, InputOutput> getInputs() {\r
71     return inputs;\r
72   }\r
73 \r
74   /**\r
75    * @param inputs the inputs to set\r
76    */\r
77   public void setInputs(Map<String, InputOutput> inputs) {\r
78     this.inputs = inputs;\r
79   }\r
80 \r
81   /**\r
82    * @return the outputs\r
83    */\r
84   public Map<String, InputOutput> getOutputs() {\r
85     return outputs;\r
86   }\r
87 \r
88   /**\r
89    * @param outputs the outputs to set\r
90    */\r
91   public void setOutputs(Map<String, InputOutput> outputs) {\r
92     this.outputs = outputs;\r
93   }\r
94 \r
95 }\r