Package no.unit.nva
Class PublicationMapper
java.lang.Object
no.unit.nva.PublicationMapper
-
Method Summary
Modifier and TypeMethodDescriptionstatic <R extends WithContext>
RconvertValue(Publication publication, com.fasterxml.jackson.databind.JsonNode context, Class<R> responseType) Maps a publication and context to specified type.static <R extends WithContext>
RconvertValue(Publication publication, Class<R> responseType) Maps a publication to specified type with default context.
-
Method Details
-
convertValue
public static <R extends WithContext> R convertValue(Publication publication, com.fasterxml.jackson.databind.JsonNode context, Class<R> responseType) Maps a publication and context to specified type.- Type Parameters:
R- Type to be converted to.- Parameters:
publication- publication.context- jsonld context.responseType- Class to be converted to.- Returns:
- publication response
-
convertValue
public static <R extends WithContext> R convertValue(Publication publication, Class<R> responseType) Maps a publication to specified type with default context.- Type Parameters:
R- Type to be converted to.- Parameters:
publication- publication.responseType- Class to be converted to.- Returns:
- publication response
-