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