Class ObjectNodeToMap
java.lang.Object
org.nuxeo.ecm.automation.core.impl.adapters.ObjectNodeToMap
- All Implemented Interfaces:
TypeAdapter
Make it possible to directly JSON tree nodes parsed by the REST API (e.g. parameters or input) directly to java
datastructures.
- Since:
- 5.7
- Author:
- Olivier Grisel
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAdaptedValue
(OperationContext ctx, Object objectToAdapt) Adapt the given object to an instance of the given target type.
-
Constructor Details
-
ObjectNodeToMap
public ObjectNodeToMap()
-
-
Method Details
-
getAdaptedValue
Description copied from interface:TypeAdapter
Adapt the given object to an instance of the given target type. The input object cannot be null. Throws an exception if the object cannot be adapted.- Specified by:
getAdaptedValue
in interfaceTypeAdapter
- Throws:
TypeAdaptException
- when the object cannot be adapted
-