Class 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 Detail

      • FuzzyEnumModule

        public FuzzyEnumModule()
    • Method Detail

      • getModuleName

        public String getModuleName()
        Specified by:
        getModuleName in class com.fasterxml.jackson.databind.Module
      • version

        public com.fasterxml.jackson.core.Version version()
        Specified by:
        version in interface com.fasterxml.jackson.core.Versioned
        Specified by:
        version in class com.fasterxml.jackson.databind.Module
      • setupModule

        public void setupModule​(com.fasterxml.jackson.databind.Module.SetupContext context)
        Specified by:
        setupModule in class com.fasterxml.jackson.databind.Module