public String resolve(String macroName) { return getProperty(map, macroName); } });
/** * Returns String property from a map. If key is not found, or if value is not a String, returns <code>null</code>. * Mimics <code>Property.getProperty</code> but on map. */ public static String getProperty(Map map, String key) { return getProperty(map, key, null); }
/** * Returns String property from a map. If key is not found, or if value is not a String, returns <code>null</code>. * Mimics <code>Property.getProperty</code> but on map. */ public static String getProperty(final Map map, final String key) { return getProperty(map, key, null); }
/** * Returns property with resolved variables. */ public static String resolveProperty(final Map map, final String key) { String value = getProperty(map, key); if (value == null) { return null; } value = stp.parse(value, macroName -> getProperty(map, macroName)); return value; }
/** * Returns property with resolved variables. */ public static String resolveProperty(final Map map, String key) { String value = getProperty(map, key); if (value == null) { return null; } value = stp.parse(value, new StringTemplateParser.MacroResolver() { public String resolve(String macroName) { return getProperty(map, macroName); } }); return value; }
/** * Returns String property from a map. If key is not found, or if value is not a String, returns <code>null</code>. * Mimics <code>Property.getProperty</code> but on map. */ public static String getProperty(final Map map, final String key) { return getProperty(map, key, null); }
/** * Returns property with resolved variables. */ public static String resolveProperty(final Map map, final String key) { String value = getProperty(map, key); if (value == null) { return null; } value = stp.parse(value, macroName -> getProperty(map, macroName)); return value; }