Unit tests
[vid.git] / vid-app-common / src / main / java / org / onap / vid / asdc / beans / tosca / Property.java
1 /*-
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");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.onap.vid.asdc.beans.tosca;
22
23 /**
24  * The Class Property.
25  */
26 public class Property {
27
28         /** The type. */
29         private String type;
30         
31         /** The description. */
32         private String description;
33         
34         /** The entry schema. */
35         private Schema entry_schema;
36         
37         /** The default. */
38         private String _default;
39         
40         /** The required. */
41         private boolean required;
42         
43         /**
44          * Instantiates a new property.
45          */
46         Property() {}
47         
48         /**
49          * Gets the type.
50          *
51          * @return the type
52          */
53         public String getType() {
54                 return type;
55         }
56
57         /**
58          * Gets the description.
59          *
60          * @return the description
61          */
62         public String getDescription() {
63                 return description;
64         }
65
66         /**
67          * Gets the entry schema.
68          *
69          * @return the entry schema
70          */
71         public Schema getEntry_schema() {
72                 return entry_schema;
73         }
74
75         /**
76          * Gets the default.
77          *
78          * @return the default
79          */
80         public String get_default() {
81                 return _default;
82         }
83
84         /**
85          * Sets the type.
86          *
87          * @param type the new type
88          */
89         public void setType(String type) {
90                 this.type = type;
91         }
92
93         /**
94          * Sets the description.
95          *
96          * @param description the new description
97          */
98         public void setDescription(String description) {
99                 this.description = description;
100         }
101
102         /**
103          * Sets the entry schema.
104          *
105          * @param entry_schema the new entry schema
106          */
107         public void setEntry_schema(Schema entry_schema) {
108                 this.entry_schema = entry_schema;
109         }
110
111         /**
112          * Sets the default.
113          *
114          * @param _default the new default
115          */
116         public void set_default(String _default) {
117                 this._default = _default;
118         }
119
120         /**
121          * Gets the default.
122          *
123          * @return the default
124          */
125         public String getDefault() {
126                 return _default;
127         }
128         
129         /**
130          * Checks if is required.
131          *
132          * @return true, if is required
133          */
134         public boolean isRequired() {
135                 return required;
136         }
137         
138         /**
139          * Sets the default.
140          *
141          * @param _default the new default
142          */
143         public void setDefault(String _default) {
144                 this._default = _default;
145         }
146         
147         /**
148          * Sets the required.
149          *
150          * @param required the new required
151          */
152         public void setRequired(boolean required) {
153                 this.required = required;
154         }
155         
156         
157 }