Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.reprezen.kaizen.oasparser.ovl3.InfoImpl Maven / Gradle / Ivy
package com.reprezen.kaizen.oasparser.ovl3;
import java.util.Map;
import javax.annotation.Generated;
import com.fasterxml.jackson.databind.JsonNode;
import com.reprezen.jsonoverlay.Builder;
import com.reprezen.jsonoverlay.IJsonOverlay;
import com.reprezen.jsonoverlay.JsonOverlay;
import com.reprezen.jsonoverlay.ObjectOverlay;
import com.reprezen.jsonoverlay.OverlayFactory;
import com.reprezen.jsonoverlay.PropertiesOverlay;
import com.reprezen.jsonoverlay.ReferenceManager;
import com.reprezen.jsonoverlay.StringOverlay;
import com.reprezen.kaizen.oasparser.model3.Contact;
import com.reprezen.kaizen.oasparser.model3.Info;
import com.reprezen.kaizen.oasparser.model3.License;
import com.reprezen.kaizen.oasparser.model3.OpenApi3;
public class InfoImpl extends PropertiesOverlay implements Info {
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
public InfoImpl(JsonNode json, JsonOverlay> parent, ReferenceManager refMgr) {
super(json, parent, factory, refMgr);
}
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
public InfoImpl(Info info, JsonOverlay> parent, ReferenceManager refMgr) {
super(info, parent, factory, refMgr);
}
// Title
@Override
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
public String getTitle() {
return _get("title", String.class);
}
@Override
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
public void setTitle(String title) {
_setScalar("title", title, String.class);
}
// Description
@Override
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
public String getDescription() {
return _get("description", String.class);
}
@Override
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
public void setDescription(String description) {
_setScalar("description", description, String.class);
}
// TermsOfService
@Override
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
public String getTermsOfService() {
return _get("termsOfService", String.class);
}
@Override
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
public void setTermsOfService(String termsOfService) {
_setScalar("termsOfService", termsOfService, String.class);
}
// Contact
@Override
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
public Contact getContact() {
return _get("contact", Contact.class);
}
@Override
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
public Contact getContact(boolean elaborate) {
return _get("contact", elaborate, Contact.class);
}
@Override
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
public void setContact(Contact contact) {
_setScalar("contact", contact, Contact.class);
}
// License
@Override
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
public License getLicense() {
return _get("license", License.class);
}
@Override
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
public License getLicense(boolean elaborate) {
return _get("license", elaborate, License.class);
}
@Override
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
public void setLicense(License license) {
_setScalar("license", license, License.class);
}
// Version
@Override
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
public String getVersion() {
return _get("version", String.class);
}
@Override
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
public void setVersion(String version) {
_setScalar("version", version, String.class);
}
// Extension
@Override
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
public Map getExtensions() {
return _getMap("extensions", Object.class);
}
@Override
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
public Map getExtensions(boolean elaborate) {
return _getMap("extensions", elaborate, Object.class);
}
@Override
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
public boolean hasExtensions() {
return _isPresent("extensions");
}
@Override
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
public boolean hasExtension(String name) {
return _getMap("extensions", Object.class).containsKey(name);
}
@Override
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
public Object getExtension(String name) {
return _get("extensions", name, Object.class);
}
@Override
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
public void setExtensions(Map extensions) {
_setMap("extensions", extensions, Object.class);
}
@Override
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
public void setExtension(String name, Object extension) {
_set("extensions", name, extension, Object.class);
}
@Override
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
public void removeExtension(String name) {
_remove("extensions", name, Object.class);
}
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
public static final String F_title = "title";
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
public static final String F_description = "description";
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
public static final String F_termsOfService = "termsOfService";
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
public static final String F_contact = "contact";
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
public static final String F_license = "license";
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
public static final String F_version = "version";
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
public static final String F_extensions = "extensions";
@Override
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
protected void _elaborateJson() {
super._elaborateJson();
_createScalar("title", "title", StringOverlay.factory);
_createScalar("description", "description", StringOverlay.factory);
_createScalar("termsOfService", "termsOfService", StringOverlay.factory);
_createScalar("contact", "contact", ContactImpl.factory);
_createScalar("license", "license", LicenseImpl.factory);
_createScalar("version", "version", StringOverlay.factory);
_createMap("extensions", "", ObjectOverlay.factory, "x-.+");
}
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
public static OverlayFactory factory = new OverlayFactory() {
@Override
protected Class extends JsonOverlay super Info>> getOverlayClass() {
return InfoImpl.class;
}
@Override
public JsonOverlay _create(Info info, JsonOverlay> parent, ReferenceManager refMgr) {
JsonOverlay> overlay;
overlay = new InfoImpl(info, parent, refMgr);
@SuppressWarnings("unchecked")
JsonOverlay castOverlay = (JsonOverlay) overlay;
return castOverlay;
}
@Override
public JsonOverlay _create(JsonNode json, JsonOverlay> parent, ReferenceManager refMgr) {
JsonOverlay> overlay;
overlay = new InfoImpl(json, parent, refMgr);
@SuppressWarnings("unchecked")
JsonOverlay castOverlay = (JsonOverlay) overlay;
return castOverlay;
}
@Override
protected boolean isExtendedType() {
return false;
}
};
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
private static Class extends Info> getSubtypeOf(Info info) {
return Info.class;
}
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
private static Class extends Info> getSubtypeOf(JsonNode json) {
return Info.class;
}
@Override
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
public Class> _getModelType() {
return OpenApi3.class;
}
@Override
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
protected OverlayFactory> _getFactory() {
return factory;
}
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
public static > Builder builder(OV modelMember) {
return new Builder(factory, modelMember);
}
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
public static > Info create(OV modelMember) {
return (Info) builder(modelMember).build();
}
}