2 * ============LICENSE_START=======================================================
\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
11 * http://www.apache.org/licenses/LICENSE-2.0
\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
21 package org.openecomp.vid.asdc.beans.tosca;
\r
24 * The Class Property.
\r
26 public class Property {
\r
29 private String type;
\r
31 /** The description. */
\r
32 private String description;
\r
34 /** The entry schema. */
\r
35 private Schema entry_schema;
\r
38 private String _default;
\r
40 /** The required. */
\r
41 private boolean required;
\r
44 * Instantiates a new property.
\r
46 private Property() {}
\r
53 public String getType() {
\r
58 * Gets the description.
\r
60 * @return the description
\r
62 public String getDescription() {
\r
67 * Gets the entry schema.
\r
69 * @return the entry schema
\r
71 public Schema getEntry_schema() {
\r
72 return entry_schema;
\r
78 * @return the default
\r
80 public String get_default() {
\r
87 * @param type the new type
\r
89 public void setType(String type) {
\r
94 * Sets the description.
\r
96 * @param description the new description
\r
98 public void setDescription(String description) {
\r
99 this.description = description;
\r
103 * Sets the entry schema.
\r
105 * @param entry_schema the new entry schema
\r
107 public void setEntry_schema(Schema entry_schema) {
\r
108 this.entry_schema = entry_schema;
\r
112 * Sets the default.
\r
114 * @param _default the new default
\r
116 public void set_default(String _default) {
\r
117 this._default = _default;
\r
121 * Gets the default.
\r
123 * @return the default
\r
125 public String getDefault() {
\r
130 * Checks if is required.
\r
132 * @return true, if is required
\r
134 public boolean isRequired() {
\r
139 * Sets the default.
\r
141 * @param _default the new default
\r
143 public void setDefault(String _default) {
\r
144 this._default = _default;
\r
148 * Sets the required.
\r
150 * @param required the new required
\r
152 public void setRequired(boolean required) {
\r
153 this.required = required;
\r