Interface ValueReader<T>

Type Parameters:
T - source type

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

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
    A member of a given source
  • Method Summary

    Modifier and Type
    Method
    Description
    get(T source, String memberName)
    Returns the value from the source object for the memberName.
    getMember(T source, String memberName)
    Returns the ValueReader.Member from the source within given memberName.
    memberNames(T source)
    Returns all member names for the source object, else null if the source has no members.
  • Method Details

    • 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.