Package org.modelmapper.spi
Interface ValueWriter<T>
- Type Parameters:
T
- destination type
public interface ValueWriter<T>
Writes values to a destination. Allows for integration with 3rd party libraries.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
A member of a given destination -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns whether the value writer is supporting on resolving the members.memberNames
(Class<T> destinationType) Returns all member names for thedestinationType
object, elsenull
if the destination has no members.void
Returns the value from thedestination
object for thememberName
.
-
Method Details
-
setValue
Returns the value from thedestination
object for thememberName
.- Throws:
IllegalArgumentException
- if thememberName
is invalid for thedestination
-
getMember
- Parameters:
destinationType
- the destination typememberName
- the name of member
-
memberNames
Returns all member names for thedestinationType
object, elsenull
if the destination has no members. -
isResolveMembersSupport
boolean isResolveMembersSupport()Returns whether the value writer is supporting on resolving the members.- Returns:
true
if the value writer is supporting on resolving the members; otherwise, returnfalse
-