/* */ public static final String ENABLE_ATTRNAME_ATTRIBUTE = "attribute-name";
/* */
/* */ public NotificationFilter createNotificationFilter(Element filterConfig)
/* */ throws Exception
/* */ {
/* 73 */ AttributeChangeNotificationFilter filter = new AttributeChangeNotificationFilter();
/* */
/* 77 */ NodeList filterChildren = filterConfig.getChildNodes();
/* */
/* 79 */ for (int i = 0; i < filterChildren.getLength(); i++)
/* */ {
/* 81 */ Node filterChildNode = filterChildren.item(i);
/* */
/* 84 */ if (!filterChildNode.getNodeName().equals("enable")) {
/* */ continue;
/* */ }
/* 87 */ if (((Element)filterChildNode).hasAttribute("attribute-name"))
/* */ {
/* 89 */ String attributeName = ((Element)filterChildNode).getAttribute("attribute-name");
/* */
/* 91 */ filter.enableAttribute(attributeName);
/* */ }
/* */ else
/* */ {
/* 95 */ throw new Exception("'enable' element must have a 'attribute-name' attribute");
/* */ }