public class JsonContext extends Object
| Constructor and Description |
|---|
JsonContext() |
JsonContext(File file) |
JsonContext(URL url) |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
at(com.fasterxml.jackson.core.JsonPointer pointer)
Look up a node including on document if needed
|
com.fasterxml.jackson.databind.JsonNode |
getDocument() |
ObjectMapperFactory |
getFactory()
Returns user defined ObjectMapperFactory, if one was set or
DefaultObjectMapperFactory |
com.fasterxml.jackson.databind.JsonNode |
getNode() |
Set<JsonReference> |
getProcessed() |
URL |
getUrl() |
void |
setFactory(ObjectMapperFactory factory)
The is used to create ObjectMapper instances
If not defined, default will be used
|
void |
setNode(com.fasterxml.jackson.databind.JsonNode node) |
void |
setProcessed(Set<JsonReference> processed) |
void |
setUrl(URL url) |
public JsonContext()
public JsonContext(File file) throws IOException
file - FileIOException - on invalid filepublic JsonContext(URL url)
url - URLpublic com.fasterxml.jackson.databind.JsonNode getDocument()
throws IOException
IOExceptionpublic com.fasterxml.jackson.databind.JsonNode getNode()
throws IOException
IOExceptionpublic void setFactory(ObjectMapperFactory factory)
factory - factorypublic ObjectMapperFactory getFactory()
DefaultObjectMapperFactorypublic void setNode(com.fasterxml.jackson.databind.JsonNode node)
public URL getUrl()
public void setUrl(URL url)
public Set<JsonReference> getProcessed()
public void setProcessed(Set<JsonReference> processed)
public com.fasterxml.jackson.databind.JsonNode at(com.fasterxml.jackson.core.JsonPointer pointer)
throws IOException
pointer - pointerIOException - on getting documentCopyright © 2016. All rights reserved.