public class JsonReferenceProcessor extends Object
| Constructor and Description |
|---|
JsonReferenceProcessor() |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
get(JsonReference ref)
Resolve with defaults.
|
JsonReference |
getAbsoluteRef(JsonReference ref,
JsonContext context) |
ObjectMapperFactory |
getMapperFactory() |
int |
getMaxDepth() |
String |
getRefPrefix() |
com.fasterxml.jackson.databind.JsonNode |
getReplacementNode(com.fasterxml.jackson.databind.JsonNode node,
JsonContext context) |
boolean |
isCacheInMemory() |
boolean |
isPreserveRefs() |
boolean |
isStopOnCircular() |
com.fasterxml.jackson.databind.JsonNode |
process(File file) |
com.fasterxml.jackson.databind.JsonNode |
process(JsonContext context) |
com.fasterxml.jackson.databind.JsonNode |
process(JsonContext context,
com.fasterxml.jackson.databind.JsonNode node) |
com.fasterxml.jackson.databind.JsonNode |
process(JsonContext context,
Set<JsonReference> processed) |
com.fasterxml.jackson.databind.JsonNode |
process(URL url) |
com.fasterxml.jackson.databind.JsonNode |
read(File file) |
com.fasterxml.jackson.databind.JsonNode |
read(URL url) |
com.fasterxml.jackson.databind.JsonNode |
readFile(String fileString) |
JsonContext |
resolveFromContextToContext(JsonReference ref,
JsonContext context) |
void |
setCacheInMemory(boolean cacheInMemory) |
void |
setMapperFactory(ObjectMapperFactory mapperFactory) |
void |
setMaxDepth(int maxDepth) |
void |
setPreserveRefs(boolean preserveRefs) |
void |
setRefPrefix(String refPrefix) |
void |
setStopOnCircular(boolean stopOnCircular) |
public boolean isCacheInMemory()
public void setCacheInMemory(boolean cacheInMemory)
public int getMaxDepth()
public void setMaxDepth(int maxDepth)
public boolean isStopOnCircular()
public void setStopOnCircular(boolean stopOnCircular)
public boolean isPreserveRefs()
public void setPreserveRefs(boolean preserveRefs)
public String getRefPrefix()
public void setRefPrefix(String refPrefix)
public ObjectMapperFactory getMapperFactory()
public void setMapperFactory(ObjectMapperFactory mapperFactory)
public com.fasterxml.jackson.databind.JsonNode process(File file) throws JsonReferenceException, IOException
JsonReferenceExceptionIOExceptionpublic com.fasterxml.jackson.databind.JsonNode process(URL url) throws JsonReferenceException, IOException
JsonReferenceExceptionIOExceptionpublic com.fasterxml.jackson.databind.JsonNode process(JsonContext context, Set<JsonReference> processed) throws JsonReferenceException, IOException
JsonReferenceExceptionIOExceptionpublic com.fasterxml.jackson.databind.JsonNode process(JsonContext context) throws JsonReferenceException, IOException
JsonReferenceExceptionIOExceptionpublic com.fasterxml.jackson.databind.JsonNode process(JsonContext context, com.fasterxml.jackson.databind.JsonNode node) throws JsonReferenceException, IOException
JsonReferenceExceptionIOExceptionpublic com.fasterxml.jackson.databind.JsonNode getReplacementNode(com.fasterxml.jackson.databind.JsonNode node,
JsonContext context)
throws JsonReferenceException,
IOException
JsonReferenceExceptionIOExceptionpublic JsonReference getAbsoluteRef(JsonReference ref, JsonContext context) throws JsonReferenceException
JsonReferenceExceptionpublic JsonContext resolveFromContextToContext(JsonReference ref, JsonContext context) throws IOException, JsonReferenceException
IOExceptionJsonReferenceExceptionpublic com.fasterxml.jackson.databind.JsonNode get(JsonReference ref) throws IOException, JsonReferenceException
ref - ref to absolute URLIOException - on invalid ref (URL or file)JsonReferenceException - on invalid refpublic com.fasterxml.jackson.databind.JsonNode read(URL url) throws IOException, JsonReferenceException
IOExceptionJsonReferenceExceptionpublic com.fasterxml.jackson.databind.JsonNode read(File file) throws IOException, JsonReferenceException
IOExceptionJsonReferenceExceptionpublic com.fasterxml.jackson.databind.JsonNode readFile(String fileString) throws IOException, JsonReferenceException
IOExceptionJsonReferenceExceptionCopyright © 2016. All rights reserved.