Package de.xima.fc.fastjson
Class ReflectionFastJsonProvider
- java.lang.Object
-
- com.jayway.jsonpath.spi.json.AbstractJsonProvider
-
- de.xima.fc.fastjson.FastJsonProvider
-
- de.xima.fc.fastjson.ReflectionFastJsonProvider
-
- All Implemented Interfaces:
com.jayway.jsonpath.spi.json.JsonProvider
public final class ReflectionFastJsonProvider extends FastJsonProvider implements com.jayway.jsonpath.spi.json.JsonProvider
JSON provider that allows treating Java object as JSON objects. You can use this to access a value on a Java object via a JSON path.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
-
Field Summary
Fields Modifier and Type Field Description static com.jayway.jsonpath.spi.json.JsonProvider
INSTANCE
The immutable instance of this provider.
-
Constructor Summary
Constructors Constructor Description ReflectionFastJsonProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getMapValue(Object obj, String key)
Collection<String>
getPropertyKeys(Object obj)
boolean
isMap(Object obj)
void
removeProperty(Object obj, Object key)
void
setProperty(Object obj, Object key, Object value)
-
Methods inherited from class de.xima.fc.fastjson.FastJsonProvider
createArray, createMap, parse, parse, toJson
-
Methods inherited from class com.jayway.jsonpath.spi.json.AbstractJsonProvider
getArrayIndex, getArrayIndex, isArray, length, setArrayIndex, toIterable, unwrap
-
-
-
-
Method Detail
-
getMapValue
public Object getMapValue(Object obj, String key)
- Specified by:
getMapValue
in interfacecom.jayway.jsonpath.spi.json.JsonProvider
- Overrides:
getMapValue
in classcom.jayway.jsonpath.spi.json.AbstractJsonProvider
-
getPropertyKeys
public Collection<String> getPropertyKeys(Object obj)
- Specified by:
getPropertyKeys
in interfacecom.jayway.jsonpath.spi.json.JsonProvider
- Overrides:
getPropertyKeys
in classcom.jayway.jsonpath.spi.json.AbstractJsonProvider
-
isMap
public boolean isMap(Object obj)
- Specified by:
isMap
in interfacecom.jayway.jsonpath.spi.json.JsonProvider
- Overrides:
isMap
in classcom.jayway.jsonpath.spi.json.AbstractJsonProvider
-
setProperty
public void setProperty(Object obj, Object key, Object value)
- Specified by:
setProperty
in interfacecom.jayway.jsonpath.spi.json.JsonProvider
- Overrides:
setProperty
in classcom.jayway.jsonpath.spi.json.AbstractJsonProvider
-
-