public void reset(XMLComponentManager paramXMLComponentManager) throws XMLConfigurationException { super.reset(paramXMLComponentManager); this.fAttributes.setNamespaces(this.fNamespaces); this.fMarkupDepth = 0; this.fCurrentElement = null; this.fElementStack.clear(); this.fHasExternalDTD = false; this.fStandalone = false; this.fIsEntityDeclaredVC = false; this.fInScanContent = false; setScannerState(7); setDispatcher(this.fContentDispatcher); if (this.fParserSettings) { try { this.fNotifyBuiltInRefs = paramXMLComponentManager.getFeature( "http://apache.org/xml/features/scanner/notify-builtin-refs"); } catch (XMLConfigurationException localXMLConfigurationException1) { this.fNotifyBuiltInRefs = false; } try { Object localObject = paramXMLComponentManager.getProperty( "http://apache.org/xml/properties/internal/entity-resolver"); this.fExternalSubsetResolver = ((localObject instanceof ExternalSubsetResolver) ? (ExternalSubsetResolver) localObject : null); } catch (XMLConfigurationException localXMLConfigurationException2) { this.fExternalSubsetResolver = null; } } }
/** * Resets the component. The component can query the component manager about any features and * properties that affect the operation of the component. * * @param manager The component manager. * @throws XNIException Thrown by component on initialization error. */ public void reset(XMLComponentManager manager) throws XMLConfigurationException { super.reset(manager); // features fNamespaces = manager.getFeature(NAMESPACES); fOverrideNamespaces = manager.getFeature(OVERRIDE_NAMESPACES); fInsertNamespaces = manager.getFeature(INSERT_NAMESPACES); // get properties fNamesElems = getNamesValue(String.valueOf(manager.getProperty(NAMES_ELEMS))); fNamesAttrs = getNamesValue(String.valueOf(manager.getProperty(NAMES_ATTRS))); fNamespacesURI = String.valueOf(manager.getProperty(NAMESPACES_URI)); // initialize state fNamespaceContext.reset(); } // reset(XMLComponentManager)
/** * @param componentManager The component manager. * @throws SAXException Throws exception if required features and properties cannot be found. */ public void reset(XMLComponentManager componentManager) throws XMLConfigurationException { try { fParserSettings = componentManager.getFeature(PARSER_SETTINGS); } catch (XMLConfigurationException e) { fParserSettings = true; } if (!fParserSettings) { // parser settings have not been changed init(); return; } // Xerces properties fSymbolTable = (SymbolTable) componentManager.getProperty(SYMBOL_TABLE); fErrorReporter = (XMLErrorReporter) componentManager.getProperty(ERROR_REPORTER); fEntityManager = (XMLEntityManager) componentManager.getProperty(ENTITY_MANAGER); // sax features try { fValidation = componentManager.getFeature(VALIDATION); } catch (XMLConfigurationException e) { fValidation = false; } try { fNamespaces = componentManager.getFeature(NAMESPACES); } catch (XMLConfigurationException e) { fNamespaces = true; } try { fNotifyCharRefs = componentManager.getFeature(NOTIFY_CHAR_REFS); } catch (XMLConfigurationException e) { fNotifyCharRefs = false; } init(); } // reset(XMLComponentManager)