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=========================================================
21 package org.onap.aai.schemagen.swagger;
23 import java.util.List;
25 public class Definition {
27 private String definitionName;
29 private String definitionDescription;
31 private List<Property> propertyList;
33 private List<Property> schemaPropertyList;
35 private List<Property> regularPropertyList;
37 private boolean hasDescription;
39 public String getDefinitionName() {
40 return definitionName;
43 public void setDefinitionName(String definitionName) {
44 this.definitionName = definitionName;
47 public List<Property> getPropertyList() {
51 public void setPropertyList(List<Property> propertyList) {
52 this.propertyList = propertyList;
55 public String getDefinitionDescription() {
56 return definitionDescription;
59 public void setDefinitionDescription(String definitionDescription) {
60 this.definitionDescription = definitionDescription;
64 public String toString() {
65 return "Definition{" + "definitionName='" + getDefinitionName() + '\''
66 + ", definitionDescription='" + getDefinitionDescription() + '\'' + ", propertyList="
67 + getPropertyList() + '}';
70 public boolean isHasDescription() {
71 return hasDescription;
74 public void setHasDescription(boolean hasDescription) {
75 this.hasDescription = hasDescription;
78 public List<Property> getSchemaPropertyList() {
79 return schemaPropertyList;
82 public void setSchemaPropertyList(List<Property> schemaPropertyList) {
83 this.schemaPropertyList = schemaPropertyList;
86 public List<Property> getRegularPropertyList() {
87 return regularPropertyList;
90 public void setRegularPropertyList(List<Property> regularPropertyList) {
91 this.regularPropertyList = regularPropertyList;
94 public static class Property {
96 private String propertyName;
98 private String propertyDescription;
100 private boolean hasPropertyDescription;
102 private String propertyType;
104 private boolean hasType;
106 private String propertyReference;
108 private String propertyReferenceObjectName;
110 private boolean isRequired;
112 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() {
143 return "Property{" + "propertyName='" + getPropertyName() + '\'' + ", propertyType='"
144 + getPropertyType() + '\'' + ", propertyReference='" + getPropertyReference() + '\''
148 public boolean isHasType() {
152 public void setHasType(boolean hasType) {
153 this.hasType = hasType;
156 public boolean isRequired() {
160 public void setRequired(boolean required) {
161 isRequired = required;
164 public boolean isHasPropertyReference() {
165 return hasPropertyReference;
168 public void setHasPropertyReference(boolean hasPropertyReference) {
169 this.hasPropertyReference = hasPropertyReference;
172 public String getPropertyReferenceObjectName() {
173 return propertyReferenceObjectName;
176 public void setPropertyReferenceObjectName(String propertyReferenceObjectName) {
177 this.propertyReferenceObjectName = propertyReferenceObjectName;
180 public String getPropertyDescription() {
181 return propertyDescription;
184 public void setPropertyDescription(String propertyDescription) {
185 this.propertyDescription = propertyDescription;
188 public boolean isHasPropertyDescription() {
189 return hasPropertyDescription;
192 public void setHasPropertyDescription(boolean hasPropertyDescription) {
193 this.hasPropertyDescription = hasPropertyDescription;