All Downloads are FREE. Search and download functionalities are using the official Maven repository.
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.SecurityRequirementImpl 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.OverlayFactory;
import com.reprezen.jsonoverlay.PropertiesOverlay;
import com.reprezen.jsonoverlay.ReferenceManager;
import com.reprezen.kaizen.oasparser.model3.OpenApi3;
import com.reprezen.kaizen.oasparser.model3.SecurityParameter;
import com.reprezen.kaizen.oasparser.model3.SecurityRequirement;
public class SecurityRequirementImpl extends PropertiesOverlay implements SecurityRequirement {
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
public SecurityRequirementImpl(JsonNode json, JsonOverlay> parent, ReferenceManager refMgr) {
super(json, parent, factory, refMgr);
}
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
public SecurityRequirementImpl(SecurityRequirement securityRequirement, JsonOverlay> parent,
ReferenceManager refMgr) {
super(securityRequirement, parent, factory, refMgr);
}
// Requirement
@Override
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
public Map getRequirements() {
return _getMap("requirements", SecurityParameter.class);
}
@Override
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
public Map getRequirements(boolean elaborate) {
return _getMap("requirements", elaborate, SecurityParameter.class);
}
@Override
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
public boolean hasRequirements() {
return _isPresent("requirements");
}
@Override
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
public boolean hasRequirement(String name) {
return _getMap("requirements", SecurityParameter.class).containsKey(name);
}
@Override
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
public SecurityParameter getRequirement(String name) {
return _get("requirements", name, SecurityParameter.class);
}
@Override
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
public void setRequirements(Map requirements) {
_setMap("requirements", requirements, SecurityParameter.class);
}
@Override
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
public void setRequirement(String name, SecurityParameter requirement) {
_set("requirements", name, requirement, SecurityParameter.class);
}
@Override
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
public void removeRequirement(String name) {
_remove("requirements", name, SecurityParameter.class);
}
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
public static final String F_requirements = "requirements";
@Override
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
protected void _elaborateJson() {
super._elaborateJson();
_createMap("requirements", "", SecurityParameterImpl.factory, "[a-zA-Z0-9\\._-]+");
}
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
public static OverlayFactory factory = new OverlayFactory() {
@Override
protected Class extends JsonOverlay super SecurityRequirement>> getOverlayClass() {
return SecurityRequirementImpl.class;
}
@Override
public JsonOverlay _create(SecurityRequirement securityRequirement, JsonOverlay> parent,
ReferenceManager refMgr) {
JsonOverlay> overlay;
overlay = new SecurityRequirementImpl(securityRequirement, parent, refMgr);
@SuppressWarnings("unchecked")
JsonOverlay castOverlay = (JsonOverlay) overlay;
return castOverlay;
}
@Override
public JsonOverlay _create(JsonNode json, JsonOverlay> parent, ReferenceManager refMgr) {
JsonOverlay> overlay;
overlay = new SecurityRequirementImpl(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 SecurityRequirement> getSubtypeOf(SecurityRequirement securityRequirement) {
return SecurityRequirement.class;
}
@Generated("com.reprezen.jsonoverlay.gen.CodeGenerator")
private static Class extends SecurityRequirement> getSubtypeOf(JsonNode json) {
return SecurityRequirement.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 > SecurityRequirement create(OV modelMember) {
return (SecurityRequirement) builder(modelMember).build();
}
}