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 ClassesModifier and TypeInterfaceDescriptionstatic class
A member of a given source -
Method Summary
Modifier and TypeMethodDescriptionReturns the value from thesource
object for thememberName
.memberNames
(T source) Returns all member names for thesource
object, elsenull
if the source has no members.
-
Method Details
-
get
Returns the value from thesource
object for thememberName
.- Throws:
IllegalArgumentException
- if thememberName
is invalid for thesource
-
getMember
- Parameters:
source
- the source objectmemberName
- the name of member
-
memberNames
Returns all member names for thesource
object, elsenull
if the source has no members.
-