@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, getBooleanField, getNode, getStringField, getStringListField, read, readEntitypublic static String DEFAULT_SCHEMA_NAME
public DocumentPropertiesJsonReader()
public List<Property> read(org.codehaus.jackson.JsonNode jn) throws IOException
AbstractJsonReaderJsonNode and return corresponding java
object.read in class AbstractJsonReader<List<Property>>jn - A ready to use JsonNode.IOExceptionprotected Property readProperty(Property parent, Field field, org.codehaus.jackson.JsonNode jn) throws IOException
IOExceptionCopyright © 2017 Nuxeo. All rights reserved.