Interface ValueReader<T>

  • Type Parameters:
    T - source type

    public interface ValueReader<T>
    Reads values from a source. Allows for integration with 3rd party libraries.
    • Method Detail

      • get

        Object get​(T source,
                   String memberName)
        Returns the value from the source object for the memberName.
        Throws:
        IllegalArgumentException - if the memberName is invalid for the source
      • getMember

        ValueReader.Member<T> getMember​(T source,
                                        String memberName)
        Returns the ValueReader.Member from the source within given memberName.
        Parameters:
        source - the source object
        memberName - the name of member
      • memberNames

        Collection<String> memberNames​(T source)
        Returns all member names for the source object, else null if the source has no members.