Upgrade sonar plugin
[vid.git] / vid-app-common / src / main / java / org / openecomp / vid / asdc / beans / tosca / Input.java
1 /*-\r
2  * ============LICENSE_START=======================================================\r
3  * VID\r
4  * ================================================================================\r
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.\r
6  * ================================================================================\r
7  * Licensed under the Apache License, Version 2.0 (the "License");\r
8  * you may not use this file except in compliance with the License.\r
9  * You may obtain a copy of the License at\r
10  * \r
11  *      http://www.apache.org/licenses/LICENSE-2.0\r
12  * \r
13  * Unless required by applicable law or agreed to in writing, software\r
14  * distributed under the License is distributed on an "AS IS" BASIS,\r
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
16  * See the License for the specific language governing permissions and\r
17  * limitations under the License.\r
18  * ============LICENSE_END=========================================================\r
19  */\r
20 \r
21 package org.openecomp.vid.asdc.beans.tosca;\r
22 \r
23 import org.openecomp.sdc.toscaparser.api.elements.constraints.*;\r
24 \r
25 import java.util.List;\r
26 import java.util.ArrayList;\r
27 \r
28 // TODO: Auto-generated Javadoc\r
29 /**\r
30  * The Class Input.\r
31  */\r
32 public class Input {\r
33 \r
34         /** The type. */\r
35         private String type;\r
36         \r
37         /** The description. */\r
38         private String description;\r
39         \r
40         /** The default. */\r
41         private Object _default;\r
42         \r
43         /** The entry schema. */\r
44         private Input entry_schema;\r
45         \r
46         /** The constraints */\r
47         private List<org.openecomp.sdc.toscaparser.api.elements.constraints.Constraint> constraints;\r
48         \r
49         /** The required field. If not set, the default is true */\r
50         private boolean required = true;\r
51         \r
52         /**\r
53          * Instantiates a new input.\r
54          */\r
55         public Input() {\r
56                 constraints = new ArrayList<org.openecomp.sdc.toscaparser.api.elements.constraints.Constraint>();\r
57         }\r
58         \r
59         /**\r
60          * Gets the type.\r
61          *\r
62          * @return the type\r
63          */\r
64         public String getType() {\r
65                 return type;\r
66         }\r
67         \r
68         /**\r
69          * Sets the type.\r
70          *\r
71          * @param type the new type\r
72          */\r
73         public void setType(String type) {\r
74                 this.type = type;\r
75         }\r
76         /**\r
77          * Gets the required field.\r
78          *\r
79          * @return the required field\r
80          */\r
81         public boolean getRequired() {\r
82                 return required;\r
83         }\r
84         /**\r
85          * Sets the required value.\r
86          *\r
87          * @param required the new required value\r
88          */\r
89         public void setRequired(boolean required) {\r
90                 this.required = required;\r
91         }\r
92         /**\r
93          * Gets the description.\r
94          *\r
95          * @return the description\r
96          */\r
97         public String getDescription() {\r
98                 return description;\r
99         }\r
100         \r
101         /**\r
102          * Sets the description.\r
103          *\r
104          * @param description the new description\r
105          */\r
106         public void setDescription(String description) {\r
107                 this.description = description;\r
108         }\r
109         \r
110         /**\r
111          * Gets the default.\r
112          *\r
113          * @return the default\r
114          */\r
115         public Object getDefault() {\r
116                 return _default;\r
117         }\r
118         \r
119         /**\r
120          * Sets the default.\r
121          *\r
122          * @param _default the new default\r
123          */\r
124         public void setDefault(Object _default) {\r
125                 this._default = _default;\r
126         }\r
127         \r
128         /**\r
129          * Gets the entry schema.\r
130          *\r
131          * @return the entry schema\r
132          */\r
133         public Input getentry_schema() {\r
134                 return entry_schema;\r
135         }\r
136         /**\r
137          * Sets the entry schema.\r
138          *\r
139          * @param the entry schema\r
140          */\r
141         public void setentry_schema(Input s) {\r
142                 this.entry_schema = s;\r
143         }\r
144         /**\r
145          * Sets the constraints.\r
146          *\r
147          * @param c the new constraints\r
148          */\r
149         public void setConstraints(List<org.openecomp.sdc.toscaparser.api.elements.constraints.Constraint> c) {\r
150                 this.constraints = c;\r
151         }\r
152         /**\r
153          * Gets the constraints\r
154          *\r
155          * @return the constraints\r
156          */\r
157         public List<org.openecomp.sdc.toscaparser.api.elements.constraints.Constraint> getConstraints() {\r
158                 return constraints;\r
159         }\r
160         \r
161         /* (non-Javadoc)\r
162          * @see java.lang.Object#toString()\r
163          */\r
164         @Override\r
165         public String toString() {\r
166                 return "type=" + type + ",description=" + description + ",default=" + _default;\r
167         }\r
168 }\r