2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 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
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.openecomp.aai.util.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{" +
66 "definitionName='" + definitionName + '\'' +
67 ", definitionDescription='" + definitionDescription + '\'' +
68 ", propertyList=" + propertyList +
72 public boolean isHasDescription() {
73 return hasDescription;
76 public void setHasDescription(boolean hasDescription) {
77 this.hasDescription = hasDescription;
80 public List<Property> getSchemaPropertyList() {
81 return schemaPropertyList;
84 public void setSchemaPropertyList(List<Property> schemaPropertyList) {
85 this.schemaPropertyList = schemaPropertyList;
88 public List<Property> getRegularPropertyList() {
89 return regularPropertyList;
92 public void setRegularPropertyList(List<Property> regularPropertyList) {
93 this.regularPropertyList = regularPropertyList;
96 public static class Property {
98 private String propertyName;
100 private String propertyDescription;
102 private boolean hasPropertyDescription;
104 private String propertyType;
106 private boolean hasType;
108 private String propertyReference;
110 private String propertyReferenceObjectName;
112 private boolean isRequired;
114 private boolean hasPropertyReference;
118 public String getPropertyName() {
122 public void setPropertyName(String propertyName) {
123 this.propertyName = propertyName;
126 public String getPropertyType() {
130 public void setPropertyType(String propertyType) {
131 this.propertyType = propertyType;
134 public String getPropertyReference() {
135 return propertyReference;
138 public void setPropertyReference(String propertyReference) {
139 this.propertyReference = propertyReference;
143 public String toString() {
145 "propertyName='" + propertyName + '\'' +
146 ", propertyType='" + propertyType + '\'' +
147 ", propertyReference='" + propertyReference + '\'' +
151 public boolean isHasType() {
155 public void setHasType(boolean hasType) {
156 this.hasType = hasType;
159 public boolean isRequired() {
163 public void setRequired(boolean required) {
164 isRequired = required;
167 public boolean isHasPropertyReference() {
168 return hasPropertyReference;
171 public void setHasPropertyReference(boolean hasPropertyReference) {
172 this.hasPropertyReference = hasPropertyReference;
175 public String getPropertyReferenceObjectName() {
176 return propertyReferenceObjectName;
179 public void setPropertyReferenceObjectName(String propertyReferenceObjectName) {
180 this.propertyReferenceObjectName = propertyReferenceObjectName;
183 public String getPropertyDescription() {
184 return propertyDescription;
187 public void setPropertyDescription(String propertyDescription) {
188 this.propertyDescription = propertyDescription;
191 public boolean isHasPropertyDescription() {
192 return hasPropertyDescription;
195 public void setHasPropertyDescription(boolean hasPropertyDescription) {
196 this.hasPropertyDescription = hasPropertyDescription;