Package org.burningwave.json
Class ObjectHandler
java.lang.Object
org.burningwave.json.ObjectHandler
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic classstatic classstatic class -
Method Summary
Modifier and TypeMethodDescription<I,T> T static ObjectHandlerprotected <O> List<O> find(Object jSonObject, Predicate<ObjectHandler> filter, Function<ObjectHandler, O> converter) protected <O> OfindFirst(Object jSonObject, Predicate<ObjectHandler> filter, Function<ObjectHandler, O> converter) protected <I,O> void findValues(String path, Object jSonObject, Function<ObjectHandler, Map.Entry<Boolean, org.burningwave.TerminateIterationException>> filter, Function<ObjectHandler, O> converter, Collection<O> collector) protected <I,O> void findValues(String path, Collection<I> jSonObject, Function<ObjectHandler, Map.Entry<Boolean, org.burningwave.TerminateIterationException>> filter, Function<ObjectHandler, O> converter, Collection<O> collector) protected <O> voidfindValues(String path, Map<String, Object> jSonObject, Function<ObjectHandler, Map.Entry<Boolean, org.burningwave.TerminateIterationException>> filter, Function<ObjectHandler, O> converter, Collection<O> collector) getPath()<T> T<T> TgetValue()<T> TbooleanisRoot()newValueFinderAndConverter(Class<?> outputClass) protected StringremoveRootPrefix(String path) toString()protected StringvalueToString(Object value)
-
Method Details
-
create
public static ObjectHandler create(com.fasterxml.jackson.databind.ObjectMapper objectMapper, Object jsonObject) -
newFinder
-
newValueFinder
-
newValueFinderAndConverter
-
findFirst
protected <O> O findFirst(Object jSonObject, Predicate<ObjectHandler> filter, Function<ObjectHandler, O> converter) -
find
protected <O> List<O> find(Object jSonObject, Predicate<ObjectHandler> filter, Function<ObjectHandler, O> converter) -
findValues
protected <I,O> void findValues(String path, Object jSonObject, Function<ObjectHandler, Map.Entry<Boolean, org.burningwave.TerminateIterationException>> filter, Function<ObjectHandler, O> converter, Collection<O> collector) -
findValues
protected <O> void findValues(String path, Map<String, Object> jSonObject, Function<ObjectHandler, Map.Entry<Boolean, org.burningwave.TerminateIterationException>> filter, Function<ObjectHandler, O> converter, Collection<O> collector) -
findValues
protected <I,O> void findValues(String path, Collection<I> jSonObject, Function<ObjectHandler, Map.Entry<Boolean, org.burningwave.TerminateIterationException>> filter, Function<ObjectHandler, O> converter, Collection<O> collector) -
getRawValue
public <T> T getRawValue() -
getValue
public <T> T getValue() -
getValueOrRawValue
public <T> T getValueOrRawValue() -
removeRootPrefix
-
getPath
-
getParent
-
isRoot
public boolean isRoot() -
convert
-
toString
-
valueToString
-