T
- the type of elements held in this object. It should be the
extension of XmlFieldInstance class.public class CsvPathCache<T extends XmlFieldInstance> extends Object implements PathCache
Constructor and Description |
---|
CsvPathCache(Object jsonDocument) |
CsvPathCache(String content) |
Modifier and Type | Method and Description |
---|---|
List<T> |
get(String jsonPath) |
<E> E |
get(String jsonPath,
Class<E> clazz) |
List<T> |
get(String address,
String jsonPath,
Object jsonFragment) |
List<T> |
get(String address,
String jsonPath,
Object jsonFragment,
Class clazz) |
Map<String,List<T>> |
getCache() |
String |
getContent() |
Object |
getFragment(String path) |
Object |
getFragment(String address,
String jsonPath,
Object jsonFragment)
Get a JSON fragment from cache.
|
Map<String,Object> |
getFragmentCache() |
String |
getRecordId()
Gets the record identifier.
|
List<T> |
read(String path,
Object jsonFragment) |
void |
setCsvReader(CsvReader csvReader) |
void |
setRecordId(String recordId) |
public CsvPathCache(String content) throws com.jayway.jsonpath.InvalidJsonException
com.jayway.jsonpath.InvalidJsonException
public CsvPathCache(Object jsonDocument)
public Object getFragment(String path)
getFragment
in interface PathCache
public Object getFragment(String address, String jsonPath, Object jsonFragment)
getFragment
in interface PathCache
address
- - a unique address for cahcejsonPath
- - a JSON path expressionjsonFragment
- - a JSON fragment in which the path should be searched forpublic String getRecordId()
getRecordId
in interface PathCache
public void setRecordId(String recordId)
setRecordId
in interface PathCache
public Map<String,Object> getFragmentCache()
getFragmentCache
in interface PathCache
public String getContent()
getContent
in interface PathCache
public void setCsvReader(CsvReader csvReader)
Copyright © 2020. All rights reserved.