io.apicurio.datamodels.models.asyncapi.v26.AsyncApi26InfoImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apicurio-data-models Show documentation
Show all versions of apicurio-data-models Show documentation
Open Source API Design Studio
The newest version!
package io.apicurio.datamodels.models.asyncapi.v26;
import com.fasterxml.jackson.databind.JsonNode;
import io.apicurio.datamodels.models.Contact;
import io.apicurio.datamodels.models.License;
import io.apicurio.datamodels.models.Node;
import io.apicurio.datamodels.models.NodeImpl;
import io.apicurio.datamodels.models.asyncapi.v26.visitors.AsyncApi26Visitor;
import io.apicurio.datamodels.models.visitors.Visitor;
import java.util.LinkedHashMap;
import java.util.Map;
public class AsyncApi26InfoImpl extends NodeImpl implements AsyncApi26Info {
private String title;
private String version;
private String description;
private String termsOfService;
private Contact contact;
private License license;
private Map extensions;
@Override
public String getTitle() {
return title;
}
@Override
public void setTitle(String value) {
this.title = value;
}
@Override
public String getVersion() {
return version;
}
@Override
public void setVersion(String value) {
this.version = value;
}
@Override
public String getDescription() {
return description;
}
@Override
public void setDescription(String value) {
this.description = value;
}
@Override
public String getTermsOfService() {
return termsOfService;
}
@Override
public void setTermsOfService(String value) {
this.termsOfService = value;
}
@Override
public Contact getContact() {
return contact;
}
@Override
public void setContact(Contact value) {
this.contact = value;
}
@Override
public AsyncApi26Contact createContact() {
AsyncApi26ContactImpl node = new AsyncApi26ContactImpl();
node.setParent(this);
return node;
}
@Override
public License getLicense() {
return license;
}
@Override
public void setLicense(License value) {
this.license = value;
}
@Override
public AsyncApi26License createLicense() {
AsyncApi26LicenseImpl node = new AsyncApi26LicenseImpl();
node.setParent(this);
return node;
}
@Override
public Map getExtensions() {
return extensions;
}
@Override
public void addExtension(String name, JsonNode value) {
if (this.extensions == null) {
this.extensions = new LinkedHashMap<>();
}
this.extensions.put(name, value);
}
@Override
public void clearExtensions() {
if (this.extensions != null) {
this.extensions.clear();
}
}
@Override
public void removeExtension(String name) {
if (this.extensions != null) {
this.extensions.remove(name);
}
}
@Override
public void accept(Visitor visitor) {
AsyncApi26Visitor viz = (AsyncApi26Visitor) visitor;
viz.visitInfo(this);
}
@Override
public Node emptyClone() {
return new AsyncApi26InfoImpl();
}
}