Class StringLookupFactory.DefaultStringLookupsHolder

    • Constructor Detail

      • DefaultStringLookupsHolder

        DefaultStringLookupsHolder​(java.util.Properties props)
        Construct a new instance initialized with the given properties.
        Parameters:
        props - initialization properties
    • Method Detail

      • addLookup

        private static void addLookup​(DefaultStringLookup lookup,
                                      java.util.Map<java.lang.String,​StringLookup> map)
        Add the key and string lookup from lookup to map, also adding any additional key aliases if needed. Keys are normalized using the StringLookupFactory.toKey(String) method.
        Parameters:
        lookup - lookup to add
        map - map to add to
      • createDefaultStringLookups

        private static java.util.Map<java.lang.String,​StringLookup> createDefaultStringLookups()
        Create the lookup map used when the user has requested no customization.
        Returns:
        default lookup map
      • parseStringLookups

        private static java.util.Map<java.lang.String,​StringLookup> parseStringLookups​(java.lang.String str)
        Construct a lookup map by parsing the given string. The string is expected to contain comma or space-separated names of values from the DefaultStringLookup enum. If the given string is null or empty, an empty map is returned.
        Parameters:
        str - string to parse; may be null or empty
        Returns:
        lookup map parsed from the given string
      • getDefaultStringLookups

        java.util.Map<java.lang.String,​StringLookup> getDefaultStringLookups()
        Get the default string lookups map.
        Returns:
        default string lookups map