2 * ============LICENSE_START=======================================================
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
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 * ECOMP is a trademark and service mark of AT&T Intellectual Property.
22 package org.onap.aai.util.swagger;
24 import java.util.List;
26 public class Definition {
28 private String definitionName;
30 private String definitionDescription;
32 private List<Property> propertyList;
34 private List<Property> schemaPropertyList;
36 private List<Property> regularPropertyList;
38 private boolean hasDescription;
40 public String getDefinitionName() {
41 return definitionName;
44 public void setDefinitionName(String definitionName) {
45 this.definitionName = definitionName;
48 public List<Property> getPropertyList() {
52 public void setPropertyList(List<Property> propertyList) {
53 this.propertyList = propertyList;
56 public String getDefinitionDescription() {
57 return definitionDescription;
60 public void setDefinitionDescription(String definitionDescription) {
61 this.definitionDescription = definitionDescription;
65 public String toString() {
66 return "Definition{" +
67 "definitionName='" + definitionName + '\'' +
68 ", definitionDescription='" + definitionDescription + '\'' +
69 ", propertyList=" + propertyList +
73 public boolean isHasDescription() {
74 return hasDescription;
77 public void setHasDescription(boolean hasDescription) {
78 this.hasDescription = hasDescription;
81 public List<Property> getSchemaPropertyList() {
82 return schemaPropertyList;
85 public void setSchemaPropertyList(List<Property> schemaPropertyList) {
86 this.schemaPropertyList = schemaPropertyList;
89 public List<Property> getRegularPropertyList() {
90 return regularPropertyList;
93 public void setRegularPropertyList(List<Property> regularPropertyList) {
94 this.regularPropertyList = regularPropertyList;
97 public static class Property {
99 private String propertyName;
101 private String propertyDescription;
103 private boolean hasPropertyDescription;
105 private String propertyType;
107 private boolean hasType;
109 private String propertyReference;
111 private String propertyReferenceObjectName;
113 private boolean isRequired;
115 private boolean hasPropertyReference;
119 public String getPropertyName() {
123 public void setPropertyName(String propertyName) {
124 this.propertyName = propertyName;
127 public String getPropertyType() {
131 public void setPropertyType(String propertyType) {
132 this.propertyType = propertyType;
135 public String getPropertyReference() {
136 return propertyReference;
139 public void setPropertyReference(String propertyReference) {
140 this.propertyReference = propertyReference;
144 public String toString() {
146 "propertyName='" + propertyName + '\'' +
147 ", propertyType='" + propertyType + '\'' +
148 ", propertyReference='" + propertyReference + '\'' +
152 public boolean isHasType() {
156 public void setHasType(boolean hasType) {
157 this.hasType = hasType;
160 public boolean isRequired() {
164 public void setRequired(boolean required) {
165 isRequired = required;
168 public boolean isHasPropertyReference() {
169 return hasPropertyReference;
172 public void setHasPropertyReference(boolean hasPropertyReference) {
173 this.hasPropertyReference = hasPropertyReference;
176 public String getPropertyReferenceObjectName() {
177 return propertyReferenceObjectName;
180 public void setPropertyReferenceObjectName(String propertyReferenceObjectName) {
181 this.propertyReferenceObjectName = propertyReferenceObjectName;
184 public String getPropertyDescription() {
185 return propertyDescription;
188 public void setPropertyDescription(String propertyDescription) {
189 this.propertyDescription = propertyDescription;
192 public boolean isHasPropertyDescription() {
193 return hasPropertyDescription;
196 public void setHasPropertyDescription(boolean hasPropertyDescription) {
197 this.hasPropertyDescription = hasPropertyDescription;