2 * Copyright 2016 ZTE Corporation.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 package org.openo.commontosca.catalog.model.parser.yaml.yamlmodel;
18 import java.util.ArrayList;
19 import java.util.List;
22 public class Input extends YAMLElement {
24 private String type = "";
25 private String defaultValue = "";
26 private boolean required = false;
27 private List<Map<String, Object>> constraints = new ArrayList<Map<String, Object>>();
28 private EntrySchema entry_schema;
30 public String getType() {
34 public void setType(String type) {
40 public String getDefault() {
41 return this.defaultValue;
44 public void setDefault(String defaultValue) {
45 if (defaultValue != null) {
46 this.defaultValue = defaultValue;
50 public List<Map<String, Object>> getConstraints() {
51 return this.constraints;
54 public void setConstraints(List<Map<String, Object>> constraints) {
55 if (constraints != null) {
56 this.constraints = constraints;
60 public boolean isRequired() {
64 public void setRequired(boolean required) {
65 this.required = required;
68 public EntrySchema getEntry_schema() {
72 public void setEntry_schema(EntrySchema entry_schema) {
73 if (entry_schema != null) {
74 this.entry_schema = entry_schema;