public class GenericAvroJsonProvider extends Object implements com.jayway.jsonpath.spi.json.JsonProvider
Constructor and Description |
---|
GenericAvroJsonProvider() |
Modifier and Type | Method and Description |
---|---|
Object |
createArray() |
Object |
createMap() |
Object |
getArrayIndex(Object o,
int i) |
Object |
getArrayIndex(Object o,
int i,
boolean b)
Deprecated.
|
Object |
getMapValue(Object o,
String s) |
Collection<String> |
getPropertyKeys(Object o) |
boolean |
isArray(Object o) |
boolean |
isMap(Object o) |
int |
length(Object o) |
Object |
parse(InputStream inputStream,
String s) |
Object |
parse(String s) |
void |
removeProperty(Object o,
Object o1) |
void |
setArrayIndex(Object o,
int i,
Object o1) |
void |
setProperty(Object o,
Object o1,
Object o2) |
Iterable<?> |
toIterable(Object o) |
String |
toJson(Object o) |
Object |
unwrap(Object o) |
public Object parse(String s) throws com.jayway.jsonpath.InvalidJsonException
parse
in interface com.jayway.jsonpath.spi.json.JsonProvider
com.jayway.jsonpath.InvalidJsonException
public Object parse(InputStream inputStream, String s) throws com.jayway.jsonpath.InvalidJsonException
parse
in interface com.jayway.jsonpath.spi.json.JsonProvider
com.jayway.jsonpath.InvalidJsonException
public String toJson(Object o)
toJson
in interface com.jayway.jsonpath.spi.json.JsonProvider
public Object createArray()
createArray
in interface com.jayway.jsonpath.spi.json.JsonProvider
public Object createMap()
createMap
in interface com.jayway.jsonpath.spi.json.JsonProvider
public boolean isArray(Object o)
isArray
in interface com.jayway.jsonpath.spi.json.JsonProvider
public int length(Object o)
length
in interface com.jayway.jsonpath.spi.json.JsonProvider
public Iterable<?> toIterable(Object o)
toIterable
in interface com.jayway.jsonpath.spi.json.JsonProvider
public Collection<String> getPropertyKeys(Object o)
getPropertyKeys
in interface com.jayway.jsonpath.spi.json.JsonProvider
public Object getArrayIndex(Object o, int i)
getArrayIndex
in interface com.jayway.jsonpath.spi.json.JsonProvider
@Deprecated public Object getArrayIndex(Object o, int i, boolean b)
getArrayIndex
in interface com.jayway.jsonpath.spi.json.JsonProvider
public void setArrayIndex(Object o, int i, Object o1)
setArrayIndex
in interface com.jayway.jsonpath.spi.json.JsonProvider
public Object getMapValue(Object o, String s)
getMapValue
in interface com.jayway.jsonpath.spi.json.JsonProvider
public void setProperty(Object o, Object o1, Object o2)
setProperty
in interface com.jayway.jsonpath.spi.json.JsonProvider
public void removeProperty(Object o, Object o1)
removeProperty
in interface com.jayway.jsonpath.spi.json.JsonProvider
public boolean isMap(Object o)
isMap
in interface com.jayway.jsonpath.spi.json.JsonProvider
Copyright © 2011–2018. All rights reserved.