public class ResolverCache
extends java.lang.Object
Constructor and Description |
---|
ResolverCache(Swagger swagger,
java.util.List<io.swagger.models.auth.AuthorizationValue> auths,
java.lang.String parentFileLocation) |
Modifier and Type | Method and Description |
---|---|
void |
addReferencedKey(java.lang.String modelKey) |
protected com.fasterxml.jackson.databind.JsonNode |
deserialize(java.lang.String contents,
java.lang.String file) |
java.util.Map<java.lang.String,java.lang.String> |
getExternalFileCache() |
java.util.Map<java.lang.String,java.lang.String> |
getRenameCache() |
java.lang.String |
getRenamedRef(java.lang.String originalRef) |
java.util.Map<java.lang.String,java.lang.Object> |
getResolutionCache() |
boolean |
hasReferencedKey(java.lang.String modelKey) |
<T> T |
loadRef(java.lang.String ref,
io.swagger.models.refs.RefFormat refFormat,
java.lang.Class<T> expectedType) |
protected java.lang.String |
merge(java.lang.String host,
java.lang.String ref) |
void |
putRenamedRef(java.lang.String originalRef,
java.lang.String newRef) |
protected <T> void |
updateLocalRefs(java.lang.String file,
Model schema) |
protected <T> void |
updateLocalRefs(java.lang.String file,
io.swagger.models.properties.Property schema) |
protected <T> void |
updateLocalRefs(java.lang.String file,
T result) |
public ResolverCache(Swagger swagger, java.util.List<io.swagger.models.auth.AuthorizationValue> auths, java.lang.String parentFileLocation)
public <T> T loadRef(java.lang.String ref, io.swagger.models.refs.RefFormat refFormat, java.lang.Class<T> expectedType)
protected com.fasterxml.jackson.databind.JsonNode deserialize(java.lang.String contents, java.lang.String file)
protected <T> void updateLocalRefs(java.lang.String file, T result)
protected <T> void updateLocalRefs(java.lang.String file, Model schema)
protected <T> void updateLocalRefs(java.lang.String file, io.swagger.models.properties.Property schema)
protected java.lang.String merge(java.lang.String host, java.lang.String ref)
public boolean hasReferencedKey(java.lang.String modelKey)
public void addReferencedKey(java.lang.String modelKey)
public java.lang.String getRenamedRef(java.lang.String originalRef)
public void putRenamedRef(java.lang.String originalRef, java.lang.String newRef)
public java.util.Map<java.lang.String,java.lang.Object> getResolutionCache()
public java.util.Map<java.lang.String,java.lang.String> getExternalFileCache()
public java.util.Map<java.lang.String,java.lang.String> getRenameCache()
Copyright © 2019. All Rights Reserved.