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