74b00bdf7ac7b23bdde7a9af7a962cf38c91a028
[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          * Sets the type.
77          *
78          * @param type the new type
79          */
80         public void setType(String type) {
81                 this.type = type;
82         }
83
84         /**
85          * Sets the description.
86          *
87          * @param description the new description
88          */
89         public void setDescription(String description) {
90                 this.description = description;
91         }
92
93         /**
94          * Sets the entry schema.
95          *
96          * @param entry_schema the new entry schema
97          */
98         public void setEntry_schema(Schema entry_schema) {
99                 this.entry_schema = entry_schema;
100         }
101
102         /**
103          * Gets the default.
104          *
105          * @return the default
106          */
107         public String getDefault() {
108                 return _default;
109         }
110
111         /**
112          * Checks if is required.
113          *
114          * @return true, if is required
115          */
116         public boolean isRequired() {
117                 return required;
118         }
119         
120         /**
121          * Sets the default.
122          *
123          * @param _default the new default
124          */
125         public void setDefault(String _default) {
126                 this._default = _default;
127         }
128         
129         /**
130          * Sets the required.
131          *
132          * @param required the new required
133          */
134         public void setRequired(boolean required) {
135                 this.required = required;
136         }
137         
138         
139 }