Class EnumNamingStrategies.DelegatingEnumNamingStrategy

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String convertEnumToExternalName​(java.lang.String enumName)
      Translates the given enumName into an external property name according to the implementation of this EnumNamingStrategy.
      private static int nextIndexOfUnderscore​(java.lang.CharSequence sequence, int start)  
      private static java.lang.String normalizeWord​(java.lang.String word)
      Converts the first letter of the word to uppercase and the rest of the word to lowercase.
      protected static java.lang.String toBeanName​(java.lang.String enumName)
      Normalizes the enum name to lower camel case in order to be further processed by a NamingStrategies
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DelegatingEnumNamingStrategy

        protected DelegatingEnumNamingStrategy​(NamingStrategyImpls strategy)
    • Method Detail

      • convertEnumToExternalName

        public java.lang.String convertEnumToExternalName​(java.lang.String enumName)
        Description copied from interface: EnumNamingStrategy
        Translates the given enumName into an external property name according to the implementation of this EnumNamingStrategy.
        Specified by:
        convertEnumToExternalName in interface EnumNamingStrategy
        Parameters:
        enumName - the name of the enum value to translate
        Returns:
        the external property name that corresponds to the given enumName according to the implementation of this EnumNamingStrategy.
      • toBeanName

        protected static java.lang.String toBeanName​(java.lang.String enumName)
        Normalizes the enum name to lower camel case in order to be further processed by a NamingStrategies
        Parameters:
        enumName - the enum name to be normalized
        Returns:
        the normalized enum name
      • nextIndexOfUnderscore

        private static int nextIndexOfUnderscore​(java.lang.CharSequence sequence,
                                                 int start)
      • normalizeWord

        private static java.lang.String normalizeWord​(java.lang.String word)
        Converts the first letter of the word to uppercase and the rest of the word to lowercase.