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 classA member of a given destination -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether the value writer is supporting on resolving the members.memberNames(Class<T> destinationType) Returns all member names for thedestinationTypeobject, elsenullif the destination has no members.voidReturns the value from thedestinationobject for thememberName.
-
Method Details
-
setValue
Returns the value from thedestinationobject for thememberName.- Throws:
IllegalArgumentException- if thememberNameis invalid for thedestination
-
getMember
- Parameters:
destinationType- the destination typememberName- the name of member
-
memberNames
Returns all member names for thedestinationTypeobject, elsenullif the destination has no members. -
isResolveMembersSupport
boolean isResolveMembersSupport()Returns whether the value writer is supporting on resolving the members.- Returns:
trueif the value writer is supporting on resolving the members; otherwise, returnfalse
-