Interface Mapper<T>
public interface Mapper<T>
Runtime contract a build-time-generated mapper implements for one
@Mapped class. Application code rarely references Mapper directly --
it goes through the typed entry points on Mappers. The interface exists
so generated code has a single ServiceLoader-friendly shape and so
extensions (custom converters, plug-in serializers) can sit on the same
type.-
Method Summary
Modifier and TypeMethodDescriptionInverse of#toMap.Inverse of#writeXml.Serializesinstanceto the JSON map representation thatcom.codename1.io.JSONParserproduces in reverse.type()The class this mapper handles.voidSerializesinstanceinto the givenElement.XML root element name (@XmlRoot.value, falling back to the class simple name with a lowercase first character).
-
Method Details
-
type
-
toMap
-
fromMap
-
xmlRootName
String xmlRootName()XML root element name (@XmlRoot.value, falling back to the class simple name with a lowercase first character). -
writeXml
-
readXml
-