Class SimpleGetter

java.lang.Object
pro.verron.officestamper.test.SimpleGetter
All Implemented Interfaces:
org.springframework.expression.PropertyAccessor

public class SimpleGetter extends Object implements org.springframework.expression.PropertyAccessor
Since:
1.6.6
Version:
${version}
Author:
Joseph Verron
  • Constructor Details

    • SimpleGetter

      public SimpleGetter(String fieldName, Object value)

      Constructor for SimpleGetter.

      Parameters:
      fieldName - a String object
      value - a Object object
  • Method Details

    • getSpecificTargetClasses

      public Class<?>[] getSpecificTargetClasses()
      Specified by:
      getSpecificTargetClasses in interface org.springframework.expression.PropertyAccessor
    • canRead

      public boolean canRead(@NonNull org.springframework.expression.EvaluationContext context, Object target, @NonNull String name)
      Specified by:
      canRead in interface org.springframework.expression.PropertyAccessor
    • read

      @NonNull public org.springframework.expression.TypedValue read(@NonNull org.springframework.expression.EvaluationContext context, Object target, String name)
      Specified by:
      read in interface org.springframework.expression.PropertyAccessor
    • canWrite

      public boolean canWrite(@NonNull org.springframework.expression.EvaluationContext context, Object target, @NonNull String name)
      Specified by:
      canWrite in interface org.springframework.expression.PropertyAccessor
    • write

      public void write(@NonNull org.springframework.expression.EvaluationContext context, Object target, @NonNull String name, Object newValue)
      Specified by:
      write in interface org.springframework.expression.PropertyAccessor