Class JacksonValueMapper
- java.lang.Object
-
- io.leangen.graphql.metadata.strategy.value.jackson.JacksonValueMapper
-
- All Implemented Interfaces:
InputFieldBuilder,ValueMapper
public class JacksonValueMapper extends Object implements ValueMapper, InputFieldBuilder
-
-
Field Summary
-
Fields inherited from interface io.leangen.graphql.metadata.strategy.value.ValueMapper
TYPE_METADATA_FIELD_NAME
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> TfromInput(Object graphQLInput, Type sourceType, AnnotatedType outputType)<T> TfromString(String json, AnnotatedType type)Set<InputField>getInputFields(InputFieldBuilderParams params)TypeDiscriminatorFieldgetTypeDiscriminatorField(InputFieldBuilderParams params)booleansupports(AnnotatedType type)StringtoString(Object output, AnnotatedType type)JacksonValueMapperwithDeserializableTypeAsPrimary()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.leangen.graphql.metadata.strategy.value.ValueMapper
fromInput
-
-
-
-
Method Detail
-
fromInput
public <T> T fromInput(Object graphQLInput, Type sourceType, AnnotatedType outputType)
- Specified by:
fromInputin interfaceValueMapper
-
fromString
public <T> T fromString(String json, AnnotatedType type)
- Specified by:
fromStringin interfaceValueMapper
-
toString
public String toString(Object output, AnnotatedType type)
- Specified by:
toStringin interfaceValueMapper
-
getInputFields
public Set<InputField> getInputFields(InputFieldBuilderParams params)
- Specified by:
getInputFieldsin interfaceInputFieldBuilder
-
getTypeDiscriminatorField
public TypeDiscriminatorField getTypeDiscriminatorField(InputFieldBuilderParams params)
- Specified by:
getTypeDiscriminatorFieldin interfaceInputFieldBuilder
-
withDeserializableTypeAsPrimary
public JacksonValueMapper withDeserializableTypeAsPrimary()
-
supports
public boolean supports(AnnotatedType type)
- Specified by:
supportsin interfaceInputFieldBuilder
-
-