/** * @param input string of property key * @return whether the input is a valid property name */ public static boolean isValid(String input) { // Check if input matches any default keys or aliases if (DEFAULT_KEYS_MAP.containsKey(input) || DEFAULT_ALIAS_MAP.containsKey(input)) { return true; } // Check if input matches any parameterized keys for (Template template : Template.values()) { if (template.matches(input)) { return true; } } return false; }