Merge "Update shema for VFC"
[aai/aai-common.git] / aai-core / src / main / java / org / onap / aai / util / swagger / Definition.java
1 /**
2  * ============LICENSE_START=======================================================
3  * org.onap.aai
4  * ================================================================================
5  * Copyright © 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
10  *
11  *    http://www.apache.org/licenses/LICENSE-2.0
12  *
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=========================================================
19  *
20  * ECOMP is a trademark and service mark of AT&T Intellectual Property.
21  */
22 package org.onap.aai.util.swagger;
23
24 import java.util.List;
25
26 public class Definition {
27
28     private String definitionName;
29
30     private String definitionDescription;
31
32     private List<Property> propertyList;
33
34     private List<Property> schemaPropertyList;
35
36     private List<Property> regularPropertyList;
37
38     private boolean hasDescription;
39
40     public String getDefinitionName() {
41         return definitionName;
42     }
43
44     public void setDefinitionName(String definitionName) {
45         this.definitionName = definitionName;
46     }
47
48     public List<Property> getPropertyList() {
49         return propertyList;
50     }
51
52     public void setPropertyList(List<Property> propertyList) {
53         this.propertyList = propertyList;
54     }
55
56     public String getDefinitionDescription() {
57         return definitionDescription;
58     }
59
60     public void setDefinitionDescription(String definitionDescription) {
61         this.definitionDescription = definitionDescription;
62     }
63
64     @Override
65     public String toString() {
66         return "Definition{" +
67                 "definitionName='" + definitionName + '\'' +
68                 ", definitionDescription='" + definitionDescription + '\'' +
69                 ", propertyList=" + propertyList +
70                 '}';
71     }
72
73     public boolean isHasDescription() {
74         return hasDescription;
75     }
76
77     public void setHasDescription(boolean hasDescription) {
78         this.hasDescription = hasDescription;
79     }
80
81     public List<Property> getSchemaPropertyList() {
82         return schemaPropertyList;
83     }
84
85     public void setSchemaPropertyList(List<Property> schemaPropertyList) {
86         this.schemaPropertyList = schemaPropertyList;
87     }
88
89     public List<Property> getRegularPropertyList() {
90         return regularPropertyList;
91     }
92
93     public void setRegularPropertyList(List<Property> regularPropertyList) {
94         this.regularPropertyList = regularPropertyList;
95     }
96
97     public static class Property {
98
99         private String propertyName;
100
101         private String propertyDescription;
102
103         private boolean hasPropertyDescription;
104
105         private String propertyType;
106
107         private boolean hasType;
108
109         private String propertyReference;
110
111         private String propertyReferenceObjectName;
112
113         private boolean isRequired;
114
115         private boolean hasPropertyReference;
116
117         public Property(){}
118
119         public String getPropertyName() {
120             return propertyName;
121         }
122
123         public void setPropertyName(String propertyName) {
124             this.propertyName = propertyName;
125         }
126
127         public String getPropertyType() {
128             return propertyType;
129         }
130
131         public void setPropertyType(String propertyType) {
132             this.propertyType = propertyType;
133         }
134
135         public String getPropertyReference() {
136             return propertyReference;
137         }
138
139         public void setPropertyReference(String propertyReference) {
140             this.propertyReference = propertyReference;
141         }
142
143         @Override
144         public String toString() {
145             return "Property{" +
146                     "propertyName='" + propertyName + '\'' +
147                     ", propertyType='" + propertyType + '\'' +
148                     ", propertyReference='" + propertyReference + '\'' +
149                     '}';
150         }
151
152         public boolean isHasType() {
153             return hasType;
154         }
155
156         public void setHasType(boolean hasType) {
157             this.hasType = hasType;
158         }
159
160         public boolean isRequired() {
161             return isRequired;
162         }
163
164         public void setRequired(boolean required) {
165             isRequired = required;
166         }
167
168         public boolean isHasPropertyReference() {
169             return hasPropertyReference;
170         }
171
172         public void setHasPropertyReference(boolean hasPropertyReference) {
173             this.hasPropertyReference = hasPropertyReference;
174         }
175
176         public String getPropertyReferenceObjectName() {
177             return propertyReferenceObjectName;
178         }
179
180         public void setPropertyReferenceObjectName(String propertyReferenceObjectName) {
181             this.propertyReferenceObjectName = propertyReferenceObjectName;
182         }
183
184         public String getPropertyDescription() {
185             return propertyDescription;
186         }
187
188         public void setPropertyDescription(String propertyDescription) {
189             this.propertyDescription = propertyDescription;
190         }
191
192         public boolean isHasPropertyDescription() {
193             return hasPropertyDescription;
194         }
195
196         public void setHasPropertyDescription(boolean hasPropertyDescription) {
197             this.hasPropertyDescription = hasPropertyDescription;
198         }
199     }
200 }