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.onap.sdc.toscaparser.api.Property;
25 import java.util.List;
26 import java.util.ArrayList;
28 // TODO: Auto-generated Javadoc
34 public Input(org.onap.sdc.toscaparser.api.parameters.Input input, List<Property> properties){
35 this.type = input.getType();
36 this.description = input.getDescription();
37 this._default = input.getDefault();
38 this.inputProperties = new InputProperties(properties);
44 /** The description. */
45 private String description;
48 private Object _default;
50 /** The entry schema. */
51 private Input entry_schema;
53 private InputProperties inputProperties;
55 /** The constraints */
56 private List<org.onap.sdc.toscaparser.api.elements.constraints.Constraint> constraints;
58 /** The required field. If not set, the default is true */
59 private boolean required = true;
61 /** Details the inputs template */
62 private String templateName;
63 private String templateUUID;
64 private String templateInvariantUUID;
65 private String templateCustomizationUUID;
68 * Instantiates a new input.
71 constraints = new ArrayList<org.onap.sdc.toscaparser.api.elements.constraints.Constraint>();
79 public String getType() {
86 * @param type the new type
88 public void setType(String type) {
92 * Gets the required field.
94 * @return the required field
96 public boolean getRequired() {
100 * Sets the required value.
102 * @param required the new required value
104 public void setRequired(boolean required) {
105 this.required = required;
108 * Gets the description.
110 * @return the description
112 public String getDescription() {
117 * Sets the description.
119 * @param description the new description
121 public void setDescription(String description) {
122 this.description = description;
128 * @return the default
130 public Object getDefault() {
137 * @param _default the new default
139 public void setDefault(Object _default) {
140 this._default = _default;
144 * Gets the entry schema.
146 * @return the entry schema
148 public Input getentry_schema() {
152 * Sets the entry schema.
155 public void setentry_schema(Input s) {
156 this.entry_schema = s;
159 public InputProperties getInputProperties() {
160 return inputProperties;
163 public void setInputProperties(InputProperties inputProperties) {
164 this.inputProperties = inputProperties;
167 * Sets the constraints.
169 * @param c the new constraints
171 public void setConstraints(List<org.onap.sdc.toscaparser.api.elements.constraints.Constraint> c) {
172 this.constraints = c;
175 * Gets the constraints
177 * @return the constraints
179 public List<org.onap.sdc.toscaparser.api.elements.constraints.Constraint> getConstraints() {
184 * @see java.lang.Object#toString()
187 public String toString() {
188 return "type=" + type + ",description=" + description + ",default=" + _default;
191 public String getTemplateName() {
195 public void setTemplateName(String templateName) {
196 this.templateName = templateName;
199 public String getTemplateUUID() {
203 public void setTemplateUUID(String templateUUID) {
204 this.templateUUID = templateUUID;
207 public String getTemplateInvariantUUID() {
208 return templateInvariantUUID;
211 public void setTemplateInvariantUUID(String templateInvariantUUID) {
212 this.templateInvariantUUID = templateInvariantUUID;
215 public String getTemplateCustomizationUUID() {
216 return templateCustomizationUUID;
219 public void setTemplateCustomizationUUID(String templateCustomizationUUID) {
220 this.templateCustomizationUUID = templateCustomizationUUID;