public class SwaggerDeserializer
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected static class |
SwaggerDeserializer.Location |
protected static class |
SwaggerDeserializer.ParseResult |
Modifier and Type | Field and Description |
---|---|
protected static java.util.Set<java.lang.String> |
BODY_PARAMETER_KEYS |
protected static java.util.Set<java.lang.String> |
CONTACT_KEYS |
protected static java.util.Set<java.lang.String> |
EXTERNAL_DOCS_KEYS |
protected static java.util.Set<java.lang.String> |
INFO_KEYS |
protected static java.util.Set<java.lang.String> |
LICENSE_KEYS |
protected static java.util.Set<java.lang.String> |
OPERATION_KEYS |
protected static java.util.Set<java.lang.String> |
PARAMETER_KEYS |
protected static java.util.Set<java.lang.String> |
PATH_KEYS |
protected static java.util.Set<java.lang.String> |
REF_MODEL_KEYS |
protected static java.util.Set<java.lang.String> |
RESPONSE_KEYS |
protected static java.util.Set<java.lang.String> |
ROOT_KEYS |
protected static java.util.Set<java.lang.String> |
SCHEMA_KEYS |
protected static java.util.Set<java.lang.String> |
SECURITY_SCHEME_KEYS |
protected static java.util.Set<java.lang.String> |
TAG_KEYS |
Constructor and Description |
---|
SwaggerDeserializer() |
Modifier and Type | Method and Description |
---|---|
Model |
allOfModel(com.fasterxml.jackson.databind.node.ObjectNode node,
java.lang.String location,
SwaggerDeserializer.ParseResult result) |
Contact |
contact(com.fasterxml.jackson.databind.node.ObjectNode node,
java.lang.String location,
SwaggerDeserializer.ParseResult result) |
Model |
definition(com.fasterxml.jackson.databind.node.ObjectNode node,
java.lang.String location,
SwaggerDeserializer.ParseResult result) |
java.util.Map<java.lang.String,Model> |
definitions(com.fasterxml.jackson.databind.node.ObjectNode node,
java.lang.String location,
SwaggerDeserializer.ParseResult result) |
SwaggerDeserializationResult |
deserialize(com.fasterxml.jackson.databind.JsonNode rootNode) |
java.lang.Object |
extension(com.fasterxml.jackson.databind.JsonNode jsonNode) |
ExternalDocs |
externalDocs(com.fasterxml.jackson.databind.node.ObjectNode node,
java.lang.String location,
SwaggerDeserializer.ParseResult result) |
com.fasterxml.jackson.databind.node.ArrayNode |
getArray(java.lang.String key,
com.fasterxml.jackson.databind.node.ObjectNode node,
boolean required,
java.lang.String location,
SwaggerDeserializer.ParseResult result) |
java.math.BigDecimal |
getBigDecimal(java.lang.String key,
com.fasterxml.jackson.databind.node.ObjectNode node,
boolean required,
java.lang.String location,
SwaggerDeserializer.ParseResult result) |
java.lang.Boolean |
getBoolean(java.lang.String key,
com.fasterxml.jackson.databind.node.ObjectNode node,
boolean required,
java.lang.String location,
SwaggerDeserializer.ParseResult result) |
java.lang.Integer |
getInteger(java.lang.String key,
com.fasterxml.jackson.databind.node.ObjectNode node,
boolean required,
java.lang.String location,
SwaggerDeserializer.ParseResult result) |
java.util.Set<java.lang.String> |
getKeys(com.fasterxml.jackson.databind.node.ObjectNode node) |
java.lang.Number |
getNumber(java.lang.String key,
com.fasterxml.jackson.databind.node.ObjectNode node,
boolean required,
java.lang.String location,
SwaggerDeserializer.ParseResult result) |
com.fasterxml.jackson.databind.node.ObjectNode |
getObject(java.lang.String key,
com.fasterxml.jackson.databind.node.ObjectNode node,
boolean required,
java.lang.String location,
SwaggerDeserializer.ParseResult result) |
java.lang.String |
getString(com.fasterxml.jackson.databind.JsonNode node,
java.lang.String location,
SwaggerDeserializer.ParseResult result) |
java.lang.String |
getString(java.lang.String key,
com.fasterxml.jackson.databind.node.ObjectNode node,
boolean required,
java.lang.String location,
SwaggerDeserializer.ParseResult result) |
java.lang.String |
getString(java.lang.String key,
com.fasterxml.jackson.databind.node.ObjectNode node,
boolean required,
java.lang.String location,
SwaggerDeserializer.ParseResult result,
java.util.Set<java.lang.String> uniqueValues) |
java.lang.String |
inferTypeFromArray(com.fasterxml.jackson.databind.node.ArrayNode an) |
Info |
info(com.fasterxml.jackson.databind.node.ObjectNode node,
java.lang.String location,
SwaggerDeserializer.ParseResult result) |
License |
license(com.fasterxml.jackson.databind.node.ObjectNode node,
java.lang.String location,
SwaggerDeserializer.ParseResult result) |
Operation |
operation(com.fasterxml.jackson.databind.node.ObjectNode obj,
java.lang.String location,
SwaggerDeserializer.ParseResult result) |
io.swagger.models.parameters.Parameter |
parameter(com.fasterxml.jackson.databind.node.ObjectNode obj,
java.lang.String location,
SwaggerDeserializer.ParseResult result) |
java.util.List<io.swagger.models.parameters.Parameter> |
parameters(com.fasterxml.jackson.databind.node.ArrayNode obj,
java.lang.String location,
SwaggerDeserializer.ParseResult result) |
Swagger |
parseRoot(com.fasterxml.jackson.databind.JsonNode node,
SwaggerDeserializer.ParseResult result) |
Path |
path(com.fasterxml.jackson.databind.node.ObjectNode obj,
java.lang.String location,
SwaggerDeserializer.ParseResult result) |
Path |
pathRef(com.fasterxml.jackson.databind.node.TextNode ref,
java.lang.String location,
SwaggerDeserializer.ParseResult result) |
java.util.Map<java.lang.String,Path> |
paths(com.fasterxml.jackson.databind.node.ObjectNode obj,
java.lang.String location,
SwaggerDeserializer.ParseResult result) |
java.util.Map<java.lang.String,io.swagger.models.properties.Property> |
properties(com.fasterxml.jackson.databind.node.ObjectNode node,
java.lang.String location,
SwaggerDeserializer.ParseResult result) |
io.swagger.models.properties.Property |
property(com.fasterxml.jackson.databind.node.ObjectNode node,
java.lang.String location,
SwaggerDeserializer.ParseResult result) |
RefModel |
refModel(com.fasterxml.jackson.databind.node.ObjectNode node,
java.lang.String location,
SwaggerDeserializer.ParseResult result) |
io.swagger.models.parameters.RefParameter |
refParameter(com.fasterxml.jackson.databind.node.TextNode obj,
java.lang.String location,
SwaggerDeserializer.ParseResult result) |
RefResponse |
refResponse(com.fasterxml.jackson.databind.node.TextNode obj,
java.lang.String location,
SwaggerDeserializer.ParseResult result) |
Response |
response(com.fasterxml.jackson.databind.node.ObjectNode node,
java.lang.String location,
SwaggerDeserializer.ParseResult result) |
java.util.Map<java.lang.String,Response> |
responses(com.fasterxml.jackson.databind.node.ObjectNode node,
java.lang.String location,
SwaggerDeserializer.ParseResult result) |
io.swagger.models.auth.SecuritySchemeDefinition |
securityDefinition(com.fasterxml.jackson.databind.node.ObjectNode node,
java.lang.String location,
SwaggerDeserializer.ParseResult result) |
java.util.Map<java.lang.String,io.swagger.models.auth.SecuritySchemeDefinition> |
securityDefinitions(com.fasterxml.jackson.databind.node.ObjectNode node,
java.lang.String location,
SwaggerDeserializer.ParseResult result) |
java.util.List<SecurityRequirement> |
securityRequirements(com.fasterxml.jackson.databind.node.ArrayNode node,
java.lang.String location,
SwaggerDeserializer.ParseResult result) |
Tag |
tag(com.fasterxml.jackson.databind.node.ObjectNode node,
java.lang.String location,
SwaggerDeserializer.ParseResult result) |
java.util.List<Tag> |
tags(com.fasterxml.jackson.databind.node.ArrayNode nodes,
java.lang.String location,
SwaggerDeserializer.ParseResult result) |
java.util.List<java.lang.String> |
tagStrings(com.fasterxml.jackson.databind.node.ArrayNode nodes,
java.lang.String location,
SwaggerDeserializer.ParseResult result) |
protected static java.util.Set<java.lang.String> ROOT_KEYS
protected static java.util.Set<java.lang.String> EXTERNAL_DOCS_KEYS
protected static java.util.Set<java.lang.String> SCHEMA_KEYS
protected static java.util.Set<java.lang.String> INFO_KEYS
protected static java.util.Set<java.lang.String> TAG_KEYS
protected static java.util.Set<java.lang.String> RESPONSE_KEYS
protected static java.util.Set<java.lang.String> CONTACT_KEYS
protected static java.util.Set<java.lang.String> LICENSE_KEYS
protected static java.util.Set<java.lang.String> REF_MODEL_KEYS
protected static java.util.Set<java.lang.String> PATH_KEYS
protected static java.util.Set<java.lang.String> OPERATION_KEYS
protected static java.util.Set<java.lang.String> PARAMETER_KEYS
protected static java.util.Set<java.lang.String> BODY_PARAMETER_KEYS
protected static java.util.Set<java.lang.String> SECURITY_SCHEME_KEYS
public SwaggerDeserializationResult deserialize(com.fasterxml.jackson.databind.JsonNode rootNode)
public Swagger parseRoot(com.fasterxml.jackson.databind.JsonNode node, SwaggerDeserializer.ParseResult result)
public java.util.Map<java.lang.String,Path> paths(com.fasterxml.jackson.databind.node.ObjectNode obj, java.lang.String location, SwaggerDeserializer.ParseResult result)
public Path path(com.fasterxml.jackson.databind.node.ObjectNode obj, java.lang.String location, SwaggerDeserializer.ParseResult result)
public Operation operation(com.fasterxml.jackson.databind.node.ObjectNode obj, java.lang.String location, SwaggerDeserializer.ParseResult result)
public java.lang.Boolean getBoolean(java.lang.String key, com.fasterxml.jackson.databind.node.ObjectNode node, boolean required, java.lang.String location, SwaggerDeserializer.ParseResult result)
public java.util.List<io.swagger.models.parameters.Parameter> parameters(com.fasterxml.jackson.databind.node.ArrayNode obj, java.lang.String location, SwaggerDeserializer.ParseResult result)
public io.swagger.models.parameters.Parameter parameter(com.fasterxml.jackson.databind.node.ObjectNode obj, java.lang.String location, SwaggerDeserializer.ParseResult result)
public io.swagger.models.parameters.RefParameter refParameter(com.fasterxml.jackson.databind.node.TextNode obj, java.lang.String location, SwaggerDeserializer.ParseResult result)
public RefResponse refResponse(com.fasterxml.jackson.databind.node.TextNode obj, java.lang.String location, SwaggerDeserializer.ParseResult result)
public Path pathRef(com.fasterxml.jackson.databind.node.TextNode ref, java.lang.String location, SwaggerDeserializer.ParseResult result)
public java.util.Map<java.lang.String,Model> definitions(com.fasterxml.jackson.databind.node.ObjectNode node, java.lang.String location, SwaggerDeserializer.ParseResult result)
public Model definition(com.fasterxml.jackson.databind.node.ObjectNode node, java.lang.String location, SwaggerDeserializer.ParseResult result)
public java.lang.Object extension(com.fasterxml.jackson.databind.JsonNode jsonNode)
public Model allOfModel(com.fasterxml.jackson.databind.node.ObjectNode node, java.lang.String location, SwaggerDeserializer.ParseResult result)
public java.util.Map<java.lang.String,io.swagger.models.properties.Property> properties(com.fasterxml.jackson.databind.node.ObjectNode node, java.lang.String location, SwaggerDeserializer.ParseResult result)
public io.swagger.models.properties.Property property(com.fasterxml.jackson.databind.node.ObjectNode node, java.lang.String location, SwaggerDeserializer.ParseResult result)
public java.lang.String inferTypeFromArray(com.fasterxml.jackson.databind.node.ArrayNode an)
public RefModel refModel(com.fasterxml.jackson.databind.node.ObjectNode node, java.lang.String location, SwaggerDeserializer.ParseResult result)
public java.util.Map<java.lang.String,Response> responses(com.fasterxml.jackson.databind.node.ObjectNode node, java.lang.String location, SwaggerDeserializer.ParseResult result)
public Response response(com.fasterxml.jackson.databind.node.ObjectNode node, java.lang.String location, SwaggerDeserializer.ParseResult result)
public Info info(com.fasterxml.jackson.databind.node.ObjectNode node, java.lang.String location, SwaggerDeserializer.ParseResult result)
public License license(com.fasterxml.jackson.databind.node.ObjectNode node, java.lang.String location, SwaggerDeserializer.ParseResult result)
public Contact contact(com.fasterxml.jackson.databind.node.ObjectNode node, java.lang.String location, SwaggerDeserializer.ParseResult result)
public java.util.Map<java.lang.String,io.swagger.models.auth.SecuritySchemeDefinition> securityDefinitions(com.fasterxml.jackson.databind.node.ObjectNode node, java.lang.String location, SwaggerDeserializer.ParseResult result)
public io.swagger.models.auth.SecuritySchemeDefinition securityDefinition(com.fasterxml.jackson.databind.node.ObjectNode node, java.lang.String location, SwaggerDeserializer.ParseResult result)
public java.util.List<SecurityRequirement> securityRequirements(com.fasterxml.jackson.databind.node.ArrayNode node, java.lang.String location, SwaggerDeserializer.ParseResult result)
public java.util.List<java.lang.String> tagStrings(com.fasterxml.jackson.databind.node.ArrayNode nodes, java.lang.String location, SwaggerDeserializer.ParseResult result)
public java.util.List<Tag> tags(com.fasterxml.jackson.databind.node.ArrayNode nodes, java.lang.String location, SwaggerDeserializer.ParseResult result)
public Tag tag(com.fasterxml.jackson.databind.node.ObjectNode node, java.lang.String location, SwaggerDeserializer.ParseResult result)
public ExternalDocs externalDocs(com.fasterxml.jackson.databind.node.ObjectNode node, java.lang.String location, SwaggerDeserializer.ParseResult result)
public java.lang.String getString(com.fasterxml.jackson.databind.JsonNode node, java.lang.String location, SwaggerDeserializer.ParseResult result)
public com.fasterxml.jackson.databind.node.ArrayNode getArray(java.lang.String key, com.fasterxml.jackson.databind.node.ObjectNode node, boolean required, java.lang.String location, SwaggerDeserializer.ParseResult result)
public com.fasterxml.jackson.databind.node.ObjectNode getObject(java.lang.String key, com.fasterxml.jackson.databind.node.ObjectNode node, boolean required, java.lang.String location, SwaggerDeserializer.ParseResult result)
public java.math.BigDecimal getBigDecimal(java.lang.String key, com.fasterxml.jackson.databind.node.ObjectNode node, boolean required, java.lang.String location, SwaggerDeserializer.ParseResult result)
public java.lang.Number getNumber(java.lang.String key, com.fasterxml.jackson.databind.node.ObjectNode node, boolean required, java.lang.String location, SwaggerDeserializer.ParseResult result)
public java.lang.Integer getInteger(java.lang.String key, com.fasterxml.jackson.databind.node.ObjectNode node, boolean required, java.lang.String location, SwaggerDeserializer.ParseResult result)
public java.lang.String getString(java.lang.String key, com.fasterxml.jackson.databind.node.ObjectNode node, boolean required, java.lang.String location, SwaggerDeserializer.ParseResult result)
public java.lang.String getString(java.lang.String key, com.fasterxml.jackson.databind.node.ObjectNode node, boolean required, java.lang.String location, SwaggerDeserializer.ParseResult result, java.util.Set<java.lang.String> uniqueValues)
public java.util.Set<java.lang.String> getKeys(com.fasterxml.jackson.databind.node.ObjectNode node)
Copyright © 2019. All Rights Reserved.