/** {@inheritDoc} */ public void doLoad(Element self) throws Exception { setFeatureName(self.getAttribute("name")); if (!self.getAttribute("value").equalsIgnoreCase("true")) { setFeatureEnabled(false); } super.doLoad(self); }
/** {@inheritDoc} */ public void doLoad(Element self) throws Exception { if (self.hasAttribute(getPropertyName())) { setPropertyValue(self.getAttribute(getPropertyName())); } // Clear namespace declarations. getNamespaces().clear(); // Load all declared additional namespaces on this element. Map<String, String> additionalNamespaces = extractNamespaces(self); if (!StringUtils.isBlank(self.getPrefix())) { // Do not include the namespace corresponding to current element itself. additionalNamespaces.remove(self.getPrefix()); } getNamespaces().putAll(additionalNamespaces); super.doLoad(self); }
protected void doLoad(Element self) throws Exception { if (self.hasAttribute("value")) { setValue(self.getAttribute("value")); } super.doLoad(self); }