Class ConstantsManager


  • public class ConstantsManager
    extends Object
    Manager of constant names.
    Since:
    ?
    Author:
    Tony Chemit - chemit@codelutin.com
    • Field Detail

      • nameToConstant

        protected Map<String,​String> nameToConstant
        cache of constant name (values) for property name (keys)
    • Constructor Detail

      • ConstantsManager

        public ConstantsManager()
    • Method Detail

      • getConstantName

        public String getConstantName​(String propertyName)
        Obtain a constant nmae from a property name and store it in cache the first time it had to build it.
        Parameters:
        propertyName - the propertyName to convert
        Returns:
        the equivalent constant name