Class JsonIndexAccessor
java.lang.Object
org.springframework.integration.json.JsonIndexAccessor
- All Implemented Interfaces:
- IndexAccessor,- TargetedAccessor
@Deprecated(forRemoval=true,
            since="7.0")
public class JsonIndexAccessor
extends Object
implements IndexAccessor
Deprecated, for removal: This API element is subject to removal in a future version.
A SpEL 
IndexAccessor that knows how to read indexes from JSON arrays, using
 Jackson's ArrayNode API.
 Supports indexes supplied as an integer literal — for example, myJsonArray[1].
 Also supports negative indexes — for example, myJsonArray[-1] which equates
 to myJsonArray[myJsonArray.length - 1]. Furthermore, null is returned for
 any index that is out of bounds (see ArrayNode.get(int) for details).
- Since:
- 6.4
- Author:
- Sam Brannen
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.
- 
Method SummaryModifier and TypeMethodDescriptionbooleancanRead(EvaluationContext context, Object target, Object index) Deprecated, for removal: This API element is subject to removal in a future version.booleancanWrite(EvaluationContext context, Object target, Object index) Deprecated, for removal: This API element is subject to removal in a future version.Class<?>[]Deprecated, for removal: This API element is subject to removal in a future version.read(EvaluationContext context, Object target, Object index) Deprecated, for removal: This API element is subject to removal in a future version.voidwrite(EvaluationContext context, Object target, Object index, @Nullable Object newValue) Deprecated, for removal: This API element is subject to removal in a future version.
- 
Constructor Details- 
JsonIndexAccessorpublic JsonIndexAccessor()Deprecated, for removal: This API element is subject to removal in a future version.
 
- 
- 
Method Details- 
getSpecificTargetClassesDeprecated, for removal: This API element is subject to removal in a future version.- Specified by:
- getSpecificTargetClassesin interface- TargetedAccessor
 
- 
canReadDeprecated, for removal: This API element is subject to removal in a future version.- Specified by:
- canReadin interface- IndexAccessor
 
- 
readpublic TypedValue read(EvaluationContext context, Object target, Object index) throws AccessException Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
- readin interface- IndexAccessor
- Throws:
- AccessException
 
- 
canWriteDeprecated, for removal: This API element is subject to removal in a future version.- Specified by:
- canWritein interface- IndexAccessor
 
- 
writepublic void write(EvaluationContext context, Object target, Object index, @Nullable Object newValue) Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
- writein interface- IndexAccessor
 
 
- 
JacksonIndexAccessorfor Jackson 3.