2 * ============LICENSE_START=======================================================
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
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=========================================================
20 package org.onap.aai.util.swagger;
22 import java.util.List;
24 public class Definition {
26 private String definitionName;
28 private String definitionDescription;
30 private List<Property> propertyList;
32 private List<Property> schemaPropertyList;
34 private List<Property> regularPropertyList;
36 private boolean hasDescription;
38 public String getDefinitionName() {
39 return definitionName;
42 public void setDefinitionName(String definitionName) {
43 this.definitionName = definitionName;
46 public List<Property> getPropertyList() {
50 public void setPropertyList(List<Property> propertyList) {
51 this.propertyList = propertyList;
54 public String getDefinitionDescription() {
55 return definitionDescription;
58 public void setDefinitionDescription(String definitionDescription) {
59 this.definitionDescription = definitionDescription;
63 public String toString() {
64 return "Definition{" +
65 "definitionName='" + definitionName + '\'' +
66 ", definitionDescription='" + definitionDescription + '\'' +
67 ", propertyList=" + propertyList +
71 public boolean isHasDescription() {
72 return hasDescription;
75 public void setHasDescription(boolean hasDescription) {
76 this.hasDescription = hasDescription;
79 public List<Property> getSchemaPropertyList() {
80 return schemaPropertyList;
83 public void setSchemaPropertyList(List<Property> schemaPropertyList) {
84 this.schemaPropertyList = schemaPropertyList;
87 public List<Property> getRegularPropertyList() {
88 return regularPropertyList;
91 public void setRegularPropertyList(List<Property> regularPropertyList) {
92 this.regularPropertyList = regularPropertyList;
95 public static class Property {
97 private String propertyName;
99 private String propertyDescription;
101 private boolean hasPropertyDescription;
103 private String propertyType;
105 private boolean hasType;
107 private String propertyReference;
109 private String propertyReferenceObjectName;
111 private boolean isRequired;
113 private boolean hasPropertyReference;
117 public String getPropertyName() {
121 public void setPropertyName(String propertyName) {
122 this.propertyName = propertyName;
125 public String getPropertyType() {
129 public void setPropertyType(String propertyType) {
130 this.propertyType = propertyType;
133 public String getPropertyReference() {
134 return propertyReference;
137 public void setPropertyReference(String propertyReference) {
138 this.propertyReference = propertyReference;
142 public String toString() {
144 "propertyName='" + propertyName + '\'' +
145 ", propertyType='" + propertyType + '\'' +
146 ", propertyReference='" + propertyReference + '\'' +
150 public boolean isHasType() {
154 public void setHasType(boolean hasType) {
155 this.hasType = hasType;
158 public boolean isRequired() {
162 public void setRequired(boolean required) {
163 isRequired = required;
166 public boolean isHasPropertyReference() {
167 return hasPropertyReference;
170 public void setHasPropertyReference(boolean hasPropertyReference) {
171 this.hasPropertyReference = hasPropertyReference;
174 public String getPropertyReferenceObjectName() {
175 return propertyReferenceObjectName;
178 public void setPropertyReferenceObjectName(String propertyReferenceObjectName) {
179 this.propertyReferenceObjectName = propertyReferenceObjectName;
182 public String getPropertyDescription() {
183 return propertyDescription;
186 public void setPropertyDescription(String propertyDescription) {
187 this.propertyDescription = propertyDescription;
190 public boolean isHasPropertyDescription() {
191 return hasPropertyDescription;
194 public void setHasPropertyDescription(boolean hasPropertyDescription) {
195 this.hasPropertyDescription = hasPropertyDescription;