public class PreProcessor extends Object
{ "foo":"bar", "#import":"id" }This means that the JSON with "id" is imported and
Created by Jeff Gaynor
on 2/15/19 at 4:11 PM
Modifier and Type | Field and Description |
---|---|
static String |
IMPORT_DIRECTIVE |
Constructor and Description |
---|
PreProcessor(JSONStore<? extends JSONEntry> store) |
Modifier and Type | Method and Description |
---|---|
net.sf.json.JSON |
execute(net.sf.json.JSONArray array) |
protected net.sf.json.JSON |
execute(net.sf.json.JSONArray array,
Set<String> ids)
This will track the ids and throw an exception if there is cycle.
|
net.sf.json.JSON |
execute(net.sf.json.JSONObject object) |
net.sf.json.JSON |
execute(net.sf.json.JSONObject object,
Set<String> ids) |
JSONStore<? extends JSONEntry> |
getStore() |
public static String IMPORT_DIRECTIVE
protected net.sf.json.JSON execute(net.sf.json.JSONArray array, Set<String> ids)
array
- ids
- public net.sf.json.JSON execute(net.sf.json.JSONArray array)
public net.sf.json.JSON execute(net.sf.json.JSONObject object)
Copyright © 2019. All Rights Reserved.