87483ffaf15450c34f190847ba4d68ca2d384acb
[vfc/nfvo/catalog.git] /
1 /**
2  * Copyright 2016 ZTE Corporation.
3  *
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
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16 package org.openo.commontosca.catalog.model.parser.yaml.yamlmodel;
17
18 import java.util.ArrayList;
19 import java.util.List;
20 import java.util.Map;
21
22 public class Input extends YAMLElement {
23
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;
29
30   public String getType() {
31     return this.type;
32   }
33
34   public void setType(String type) {
35     if (type != null) {
36       this.type = type;
37     }
38   }
39
40   public String getDefault() {
41     return this.defaultValue;
42   }
43
44   public void setDefault(String defaultValue) {
45     if (defaultValue != null) {
46       this.defaultValue = defaultValue;
47     }
48   }
49
50   public List<Map<String, Object>> getConstraints() {
51     return this.constraints;
52   }
53
54   public void setConstraints(List<Map<String, Object>> constraints) {
55     if (constraints != null) {
56       this.constraints = constraints;
57     }
58   }
59
60   public boolean isRequired() {
61     return required;
62   }
63
64   public void setRequired(boolean required) {
65     this.required = required;
66   }
67
68   public EntrySchema getEntry_schema() {
69     return entry_schema;
70   }
71
72   public void setEntry_schema(EntrySchema entry_schema) {
73     if (entry_schema != null) {
74       this.entry_schema = entry_schema;
75     }
76   }
77
78 }