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(org.codehaus.jackson.JsonNode jn)
Implement this method, read the entity data in the provided
JsonNode and return corresponding java
object. |
protected abstract EntityType |
readEntity(org.codehaus.jackson.JsonNode jn)
Implement this method to read the entity.
|
accept, getBooleanField, getNode, getStringField, getStringListField, read, readEntity
public EntityJsonReader(String entityType)
entityType
- The expected "entity-type" property in the json.public final EntityType read(org.codehaus.jackson.JsonNode jn) throws IOException
AbstractJsonReader
JsonNode
and return corresponding java
object.read
in class AbstractJsonReader<EntityType>
jn
- A ready to use JsonNode
.IOException
protected abstract EntityType readEntity(org.codehaus.jackson.JsonNode jn) throws IOException
jn
- A JsonNode
pointing at the root of the json input.IOException
Copyright © 2017 Nuxeo. All rights reserved.