20 package net.sf.gridarta.model.filter;
22 import java.util.Collections;
23 import java.util.HashMap;
25 import org.apache.log4j.Category;
26 import org.apache.log4j.Logger;
27 import org.jetbrains.annotations.NotNull;
50 private final Map<String, FilterConfig<?, ?>>
map =
new HashMap<>();
62 fireEvent(filterConfigChangeType, filterConfig);
81 if (oldConfig !=
null) {
84 if (
LOG.isDebugEnabled()) {
85 LOG.debug(
"removing config for " + filterName);
87 map.remove(filterName);
93 if (
LOG.isDebugEnabled()) {
94 LOG.debug(
"adding config for " + filterName);
96 map.put(filterName, newConfig);
103 owner.addFilterListener(namedFilterListener);
144 if (filterConfig ==
null) {
145 throw new IllegalArgumentException(
"filter config not found: " + name);
165 if (
LOG.isDebugEnabled()) {
166 LOG.debug(
"setSubFilterEnabled(" + name +
", " +
enabled +
")");
184 return Collections.unmodifiableMap(
map);