@Setup(mode=SINGLETON, priority=2000) public class DocumentPropertiesJsonReader extends AbstractJsonReader<List<Property>>
List
.
Format is:
{ "schema1Prefix:stringProperty": "stringPropertyValue", <-- each property may be marshall as object if a resolver is associated with that property and if a marshaller exists for the object, in this case, the resulting property will have the corresponding reference value. "schema1Prefix:booleanProperty": true|false, "schema2Prefix:integerProperty": 123, ... "schema3Prefix:complexProperty": { "subProperty": ..., ... }, "schema4Prefix:listProperty": [ ... ] }
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_SCHEMA_NAME |
ctx, registry
Constructor and Description |
---|
DocumentPropertiesJsonReader() |
Modifier and Type | Method and Description |
---|---|
List<Property> |
read(org.codehaus.jackson.JsonNode jn)
Implement this method, read the entity data in the provided
JsonNode and return corresponding java
object. |
protected Property |
readProperty(Property parent,
Field field,
org.codehaus.jackson.JsonNode jn) |
accept, getNode, getStringField, read, readEntity
public static String DEFAULT_SCHEMA_NAME
public DocumentPropertiesJsonReader()
public List<Property> read(org.codehaus.jackson.JsonNode jn) throws IOException
AbstractJsonReader
JsonNode
and return corresponding java
object.read
in class AbstractJsonReader<List<Property>>
jn
- A ready to use JsonNode
.IOException
protected Property readProperty(Property parent, Field field, org.codehaus.jackson.JsonNode jn) throws IOException
IOException
Copyright © 2016 Nuxeo SA. All rights reserved.