Class JsonTree
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.searchengine.elasticsearch.JsonTree
-
public class JsonTree extends Object
Build a Map of Objects, suitable for marshalling by Jackson. Include conditional logic, so null values, empty maps, or empty lists will not be added, unless you use the special values.
-
-
Field Summary
Fields Modifier and Type Field Description static List<Object>EMPTY_JSON_LISTEmpty lists will not be added, except for this one.static Map<String,Object>EMPTY_JSON_MAPEmpty maps will not be added, except for this one.
-
Constructor Summary
Constructors Constructor Description JsonTree()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>asMap()static IntegerifPositive(int i)This will cause negative integers to be ignored.JsonTreeput(String key, Object value)static JsonTreetree()Create the tree
-