|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.avaje.ebean.text.json.JsonReadOptions
public class JsonReadOptions
Provides the ability to customise the reading of JSON content.
You can optionally provide a custom JsonValueAdapter to handle specific formatting for Date and DateTime types.
You can optionally register JsonReadBeanVisitors to customise the processing of the beans as they are processed and handle any custom JSON elements that could not be mapped to bean properties.
Constructor Summary | |
---|---|
JsonReadOptions()
Default constructor. |
Method Summary | |
---|---|
JsonReadOptions |
addRootVisitor(JsonReadBeanVisitor<?> visitor)
Register a JsonReadBeanVisitor for the root level. |
JsonReadOptions |
addVisitor(String path,
JsonReadBeanVisitor<?> visitor)
Register a JsonReadBeanVisitor for a given path. |
JsonValueAdapter |
getValueAdapter()
Return the JsonValueAdapter. |
Map<String,JsonReadBeanVisitor<?>> |
getVisitorMap()
Return the map of JsonReadBeanVisitor's. |
JsonReadOptions |
setValueAdapter(JsonValueAdapter valueAdapter)
Set a JsonValueAdapter for custom DateTime and Date formatting. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JsonReadOptions()
Method Detail |
---|
public JsonValueAdapter getValueAdapter()
public Map<String,JsonReadBeanVisitor<?>> getVisitorMap()
public JsonReadOptions setValueAdapter(JsonValueAdapter valueAdapter)
public JsonReadOptions addRootVisitor(JsonReadBeanVisitor<?> visitor)
public JsonReadOptions addVisitor(String path, JsonReadBeanVisitor<?> visitor)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |