Package org.apache.solr.common.util
Class ValidatingJsonMap
- java.lang.Object
-
- org.apache.solr.common.util.ValidatingJsonMap
-
- All Implemented Interfaces:
Map<String,Object>
,NavigableObject
public class ValidatingJsonMap extends Object implements Map<String,Object>, NavigableObject
-
-
Field Summary
Fields Modifier and Type Field Description static ValidatingJsonMap
EMPTY
static ValidatingJsonMap.PredicateWithErrMsg<Pair>
ENUM_OF
static ValidatingJsonMap.PredicateWithErrMsg<Object>
NOT_NULL
-
Constructor Summary
Constructors Constructor Description ValidatingJsonMap()
ValidatingJsonMap(int i)
ValidatingJsonMap(Map<String,Object> delegate)
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Methods inherited from interface org.apache.solr.common.NavigableObject
_forEachEntry, _forEachEntry, _forEachEntry, _get, _get, _getStr, _getStr, _size
-
-
-
-
Field Detail
-
NOT_NULL
public static final ValidatingJsonMap.PredicateWithErrMsg<Object> NOT_NULL
-
ENUM_OF
public static final ValidatingJsonMap.PredicateWithErrMsg<Pair> ENUM_OF
-
EMPTY
public static final ValidatingJsonMap EMPTY
-
-
Method Detail
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKey
in interfaceMap<String,Object>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValue
in interfaceMap<String,Object>
-
get
public Object get(String key, ValidatingJsonMap.PredicateWithErrMsg predicate)
-
getMap
public ValidatingJsonMap getMap(String key)
-
getMap
public ValidatingJsonMap getMap(String key, ValidatingJsonMap.PredicateWithErrMsg predicate)
-
getMap
public ValidatingJsonMap getMap(String key, ValidatingJsonMap.PredicateWithErrMsg predicate, String message)
-
getList
public List getList(String key, ValidatingJsonMap.PredicateWithErrMsg predicate)
-
getList
public List getList(String key, ValidatingJsonMap.PredicateWithErrMsg predicate, Object test)
-
get
public Object get(String key, ValidatingJsonMap.PredicateWithErrMsg<Pair> predicate, Object arg)
-
fromJSON
public static ValidatingJsonMap fromJSON(InputStream is, String includeLocation)
-
fromJSON
public static ValidatingJsonMap fromJSON(Reader s, String includeLocation)
-
getDeepCopy
public static ValidatingJsonMap getDeepCopy(Map map, int maxDepth, boolean mutable)
-
getDeepCopy
public static Collection getDeepCopy(Collection c, int maxDepth, boolean mutable)
-
parse
public static ValidatingJsonMap parse(String resourceName, String includeLocation)
-
equals
public boolean equals(Object that)
-
-