Package io.dropwizard.jackson
Class FuzzyEnumModule
- java.lang.Object
-
- com.fasterxml.jackson.databind.Module
-
- io.dropwizard.jackson.FuzzyEnumModule
-
- All Implemented Interfaces:
com.fasterxml.jackson.core.Versioned
public class FuzzyEnumModule extends com.fasterxml.jackson.databind.Module
A module for deserializing enums that is more permissive than the default.
This deserializer is more permissive in the following ways:- Whitespace is permitted but stripped from the input.
- Dashes and periods in the value are converted to underscores.
- Matching against the enum values is case insensitive.
-
-
Constructor Summary
Constructors Constructor Description FuzzyEnumModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getModuleName()
void
setupModule(com.fasterxml.jackson.databind.Module.SetupContext context)
com.fasterxml.jackson.core.Version
version()
-
-
-
Method Detail
-
getModuleName
public String getModuleName()
- Specified by:
getModuleName
in classcom.fasterxml.jackson.databind.Module
-
version
public com.fasterxml.jackson.core.Version version()
- Specified by:
version
in interfacecom.fasterxml.jackson.core.Versioned
- Specified by:
version
in classcom.fasterxml.jackson.databind.Module
-
setupModule
public void setupModule(com.fasterxml.jackson.databind.Module.SetupContext context)
- Specified by:
setupModule
in classcom.fasterxml.jackson.databind.Module
-
-