EntityType - The managed Java type.public abstract class EntityJsonReader<EntityType> extends AbstractJsonReader<EntityType>
ctx, registry| Constructor and Description |
|---|
EntityJsonReader(String entityType) |
| Modifier and Type | Method and Description |
|---|---|
EntityType |
read(com.fasterxml.jackson.databind.JsonNode jn)
Implement this method, read the entity data in the provided
JsonNode and return corresponding java
object. |
protected abstract EntityType |
readEntity(com.fasterxml.jackson.databind.JsonNode jn)
Implement this method to read the entity.
|
accept, getBooleanField, getLongField, getNode, getStringField, getStringListField, read, readEntitypublic EntityJsonReader(String entityType)
entityType - The expected "entity-type" property in the json.public final EntityType read(com.fasterxml.jackson.databind.JsonNode jn) throws IOException
AbstractJsonReaderJsonNode and return corresponding java
object.read in class AbstractJsonReader<EntityType>jn - A ready to use JsonNode.IOExceptionprotected abstract EntityType readEntity(com.fasterxml.jackson.databind.JsonNode jn) throws IOException
jn - A JsonNode pointing at the root of the json input.IOExceptionCopyright © 2019 Nuxeo. All rights reserved.