2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.onap.vid.asdc.beans.tosca;
23 import org.openecomp.sdc.toscaparser.api.elements.constraints.*;
25 import java.util.List;
26 import java.util.ArrayList;
28 // TODO: Auto-generated Javadoc
37 /** The description. */
38 private String description;
41 private Object _default;
43 /** The entry schema. */
44 private Input entry_schema;
46 /** The constraints */
47 private List<org.openecomp.sdc.toscaparser.api.elements.constraints.Constraint> constraints;
49 /** The required field. If not set, the default is true */
50 private boolean required = true;
53 * Instantiates a new input.
56 constraints = new ArrayList<org.openecomp.sdc.toscaparser.api.elements.constraints.Constraint>();
64 public String getType() {
71 * @param type the new type
73 public void setType(String type) {
77 * Gets the required field.
79 * @return the required field
81 public boolean getRequired() {
85 * Sets the required value.
87 * @param required the new required value
89 public void setRequired(boolean required) {
90 this.required = required;
93 * Gets the description.
95 * @return the description
97 public String getDescription() {
102 * Sets the description.
104 * @param description the new description
106 public void setDescription(String description) {
107 this.description = description;
113 * @return the default
115 public Object getDefault() {
122 * @param _default the new default
124 public void setDefault(Object _default) {
125 this._default = _default;
129 * Gets the entry schema.
131 * @return the entry schema
133 public Input getentry_schema() {
137 * Sets the entry schema.
139 * @param the entry schema
141 public void setentry_schema(Input s) {
142 this.entry_schema = s;
145 * Sets the constraints.
147 * @param c the new constraints
149 public void setConstraints(List<org.openecomp.sdc.toscaparser.api.elements.constraints.Constraint> c) {
150 this.constraints = c;
153 * Gets the constraints
155 * @return the constraints
157 public List<org.openecomp.sdc.toscaparser.api.elements.constraints.Constraint> getConstraints() {
162 * @see java.lang.Object#toString()
165 public String toString() {
166 return "type=" + type + ",description=" + description + ",default=" + _default;