Package org.modelmapper.spi
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
ValueReader.Member<T>
A member of a given source
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
get(T source, String memberName)
Returns the value from thesource
object for thememberName
.ValueReader.Member<T>
getMember(T source, String memberName)
Collection<String>
memberNames(T source)
Returns all member names for thesource
object, elsenull
if the source has no members.
-
-
-
Method Detail
-
get
Object get(T source, String memberName)
Returns the value from thesource
object for thememberName
.- Throws:
IllegalArgumentException
- if thememberName
is invalid for thesource
-
getMember
ValueReader.Member<T> getMember(T source, String memberName)
- Parameters:
source
- the source objectmemberName
- the name of member
-
memberNames
Collection<String> memberNames(T source)
Returns all member names for thesource
object, elsenull
if the source has no members.
-
-