Class ReflectionFieldAccessor

  • All Implemented Interfaces:
    FieldAccessor
    Direct Known Subclasses:
    SearchResponseScrubber

    public class ReflectionFieldAccessor
    extends java.lang.Object
    implements FieldAccessor
    Sets values on a protobuf object based on a string representation of the path to the value.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> java.util.List<T> getValues​(com.google.protobuf.Message input)  
      com.google.protobuf.Message setFieldIfPresent​(com.google.protobuf.Message input, java.lang.String toSet)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ReflectionFieldAccessor

        public ReflectionFieldAccessor​(java.lang.String path)
    • Method Detail

      • setFieldIfPresent

        public com.google.protobuf.Message setFieldIfPresent​(com.google.protobuf.Message input,
                                                             java.lang.String toSet)
        Specified by:
        setFieldIfPresent in interface FieldAccessor
      • getValues

        public <T> java.util.List<T> getValues​(com.google.protobuf.Message input)
        Specified by:
        getValues in interface FieldAccessor