[VID-6] Initial rebase push
[vid.git] / vid-app-common / src / main / java / org / openecomp / vid / asdc / beans / tosca / Property.java
1 /*-\r
2  * ============LICENSE_START=======================================================
3  * VID
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
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.
18  * ============LICENSE_END=========================================================\r
19  */\r
20 \r
21 package org.openecomp.vid.asdc.beans.tosca;\r
22 \r
23 /**\r
24  * The Class Property.\r
25  */\r
26 public class Property {\r
27 \r
28         /** The type. */\r
29         private String type;\r
30         \r
31         /** The description. */\r
32         private String description;\r
33         \r
34         /** The entry schema. */\r
35         private Schema entry_schema;\r
36         \r
37         /** The default. */\r
38         private String _default;\r
39         \r
40         /** The required. */\r
41         private boolean required;\r
42         \r
43         /**\r
44          * Instantiates a new property.\r
45          */\r
46         private Property() {}\r
47         \r
48         /**\r
49          * Gets the type.\r
50          *\r
51          * @return the type\r
52          */\r
53         public String getType() {\r
54                 return type;\r
55         }\r
56 \r
57         /**\r
58          * Gets the description.\r
59          *\r
60          * @return the description\r
61          */\r
62         public String getDescription() {\r
63                 return description;\r
64         }\r
65 \r
66         /**\r
67          * Gets the entry schema.\r
68          *\r
69          * @return the entry schema\r
70          */\r
71         public Schema getEntry_schema() {\r
72                 return entry_schema;\r
73         }\r
74 \r
75         /**\r
76          * Gets the default.\r
77          *\r
78          * @return the default\r
79          */\r
80         public String get_default() {\r
81                 return _default;\r
82         }\r
83 \r
84         /**\r
85          * Sets the type.\r
86          *\r
87          * @param type the new type\r
88          */\r
89         public void setType(String type) {\r
90                 this.type = type;\r
91         }\r
92 \r
93         /**\r
94          * Sets the description.\r
95          *\r
96          * @param description the new description\r
97          */\r
98         public void setDescription(String description) {\r
99                 this.description = description;\r
100         }\r
101 \r
102         /**\r
103          * Sets the entry schema.\r
104          *\r
105          * @param entry_schema the new entry schema\r
106          */\r
107         public void setEntry_schema(Schema entry_schema) {\r
108                 this.entry_schema = entry_schema;\r
109         }\r
110 \r
111         /**\r
112          * Sets the default.\r
113          *\r
114          * @param _default the new default\r
115          */\r
116         public void set_default(String _default) {\r
117                 this._default = _default;\r
118         }\r
119 \r
120         /**\r
121          * Gets the default.\r
122          *\r
123          * @return the default\r
124          */\r
125         public String getDefault() {\r
126                 return _default;\r
127         }\r
128         \r
129         /**\r
130          * Checks if is required.\r
131          *\r
132          * @return true, if is required\r
133          */\r
134         public boolean isRequired() {\r
135                 return required;\r
136         }\r
137         \r
138         /**\r
139          * Sets the default.\r
140          *\r
141          * @param _default the new default\r
142          */\r
143         public void setDefault(String _default) {\r
144                 this._default = _default;\r
145         }\r
146         \r
147         /**\r
148          * Sets the required.\r
149          *\r
150          * @param required the new required\r
151          */\r
152         public void setRequired(boolean required) {\r
153                 this.required = required;\r
154         }\r
155         \r
156         \r
157 }\r