Class MapAccessor
java.lang.Object
pro.verron.officestamper.preset.MapAccessor
- All Implemented Interfaces:
org.springframework.expression.PropertyAccessor, org.springframework.expression.TargetedAccessor
MapAccessor is an implementation of the
PropertyAccessor interface,
designed for accessing and manipulating properties specifically on Map objects.
It provides functionality to read and write entries in a Map based on the
property name provided.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanRead(org.springframework.expression.EvaluationContext context, @Nullable Object target, String name) booleancanWrite(org.springframework.expression.EvaluationContext context, @Nullable Object target, String name) Class<?>[]org.springframework.expression.TypedValueread(org.springframework.expression.EvaluationContext context, @Nullable Object target, String name) voidwrite(org.springframework.expression.EvaluationContext context, @Nullable Object target, String name, @Nullable Object newValue)
-
Constructor Details
-
MapAccessor
public MapAccessor()Constructs a new instance ofMapAccessor.
-
-
Method Details
-
getSpecificTargetClasses
- Specified by:
getSpecificTargetClassesin interfaceorg.springframework.expression.TargetedAccessor
-
canRead
-
read
public org.springframework.expression.TypedValue read(org.springframework.expression.EvaluationContext context, @Nullable Object target, String name) throws org.springframework.expression.AccessException - Specified by:
readin interfaceorg.springframework.expression.PropertyAccessor- Throws:
org.springframework.expression.AccessException
-
canWrite
-
write
-