/** Parses an attribute value from a list of rules, returning null if there is no match for the given key. */ private static @Nullable String findAttributeInRules(String subpath, boolean isFolder, String key, List<AttributesRule> rules) { String value = null; // later rules override earlier ones for (AttributesRule rule : rules) { if (rule.isMatch(subpath, isFolder)) { for (Attribute attribute : rule.getAttributes()) { if (attribute.getKey().equals(key)) { value = attribute.getValue(); } } } } return value; } }
AttributesRule rule = ruleIterator.previous(); if (rule.isMatch(entryPath, isDirectory)) { ListIterator<Attribute> attributeIte = rule.getAttributes() .listIterator(rule.getAttributes().size());
expansions.put(rule.getPattern() .substring(MACRO_PREFIX.length()).trim(), rule.getAttributes());
/** Parses an attribute value from a list of rules, returning null if there is no match for the given key. */ private static @Nullable String findAttributeInRules(String subpath, boolean isFolder, String key, List<AttributesRule> rules) { String value = null; // later rules override earlier ones for (AttributesRule rule : rules) { if (rule.isMatch(subpath, isFolder)) { for (Attribute attribute : rule.getAttributes()) { if (attribute.getKey().equals(key)) { value = attribute.getValue(); } } } } return value; } }
AttributesRule rule = ruleIterator.previous(); if (rule.isMatch(entryPath, isDirectory)) { ListIterator<Attribute> attributeIte = rule.getAttributes() .listIterator(rule.getAttributes().size());
AttributesRule rule = ruleIterator.previous(); if (rule.isMatch(entryPath, isDirectory)) { ListIterator<Attribute> attributeIte = rule.getAttributes() .listIterator(rule.getAttributes().size());
expansions.put(rule.getPattern() .substring(MACRO_PREFIX.length()).trim(), rule.getAttributes());
expansions.put(rule.getPattern() .substring(MACRO_PREFIX.length()).trim(), rule.getAttributes());