public void setDocumentHandler(XMLDocumentHandler handler) { if (fDocumentHandler != handler) { fDocumentHandler = handler; if (fXIncludeChildConfig != null) { fXIncludeChildConfig.setDocumentHandler(handler); } if (fXPointerChildConfig != null) { fXPointerChildConfig.setDocumentHandler(handler); } } }
/** * @see org.apache.xerces.xni.parser.XMLParserConfiguration#setDocumentHandler(org.apache.xerces.xni.XMLDocumentHandler) */ @Override public void setDocumentHandler(XMLDocumentHandler documentHandler) { config.setDocumentHandler(documentHandler); }
/** Default constructor. */ public SchemaDOMParser(XMLParserConfiguration config) { this.config = config; config.setDocumentHandler(this); config.setDTDHandler(this); config.setDTDContentModelHandler(this); }
/** * Constructs a document parser using the default symbol table * and grammar pool. */ protected AbstractXMLDocumentParser(XMLParserConfiguration config) { super(config); // set handlers config.setDocumentHandler(this); config.setDTDHandler(this); config.setDTDContentModelHandler(this); } // <init>(XMLParserConfiguration)
private void restoreHandlers() { fConfiguration.setDocumentHandler(this); fConfiguration.setDTDHandler(this); fConfiguration.setDTDContentModelHandler(this); }
/** * @see org.w3c.dom.ls.LSParser#abort() */ public void abort () { // If parse operation is in progress then reset it if (fBusy) { fBusy = false; if (currentThread != null) { abortNow = true; if (abortHandler == null) { abortHandler = new AbortHandler(); } fConfiguration.setDocumentHandler(abortHandler); fConfiguration.setDTDHandler(abortHandler); fConfiguration.setDTDContentModelHandler(abortHandler); if (currentThread == Thread.currentThread()) { throw Abort.INSTANCE; } currentThread.interrupt(); } } return; // If not busy then this is noop }
/** Default constructor. */ public DOMFragmentParser() { fParserConfiguration = new HTMLConfiguration(); fParserConfiguration.addRecognizedFeatures(RECOGNIZED_FEATURES); fParserConfiguration.addRecognizedProperties(RECOGNIZED_PROPERTIES); fParserConfiguration.setFeature(DOCUMENT_FRAGMENT, true); fParserConfiguration.setDocumentHandler(this); } // <init>()
/** Default constructor. */ public DOMFragmentParser() { fParserConfiguration = new HTMLConfiguration(); fParserConfiguration.addRecognizedFeatures(RECOGNIZED_FEATURES); fParserConfiguration.addRecognizedProperties(RECOGNIZED_PROPERTIES); fParserConfiguration.setFeature(DOCUMENT_FRAGMENT, true); fParserConfiguration.setDocumentHandler(this); }
/** Default constructor. */ public DOMFragmentParser() { fParserConfiguration = new HTMLConfiguration(); fParserConfiguration.addRecognizedFeatures(RECOGNIZED_FEATURES); fParserConfiguration.addRecognizedProperties(RECOGNIZED_PROPERTIES); fParserConfiguration.setFeature(DOCUMENT_FRAGMENT, true); fParserConfiguration.setDocumentHandler(this); } // <init>()
/** * Default constructor. */ public DOMFragmentParser() { fParserConfiguration = new HTMLConfiguration(); fParserConfiguration.addRecognizedFeatures(RECOGNIZED_FEATURES); fParserConfiguration.addRecognizedProperties(RECOGNIZED_PROPERTIES); fParserConfiguration.setFeature(DOCUMENT_FRAGMENT, true); fParserConfiguration.setDocumentHandler(this); } // <init>()
/** * Default constructor. */ public DOMFragmentParser() { fParserConfiguration = new HTMLConfiguration(); fParserConfiguration.addRecognizedFeatures(RECOGNIZED_FEATURES); fParserConfiguration.addRecognizedProperties(RECOGNIZED_PROPERTIES); fParserConfiguration.setFeature(DOCUMENT_FRAGMENT, true); fParserConfiguration.setDocumentHandler(this); } // <init>()
parser.reset(); config.setDocumentHandler(fSchemaValidator); fSchemaValidator.setDocumentHandler(parser); parser.setContentHandler(ser.asContentHandler());
config.setDocumentHandler((XMLDocumentHandler) validatorComponent); ((XMLDocumentSource)validatorComponent).setDocumentHandler(xmlReader); xmlReader.setDocumentSource((XMLDocumentSource) validatorComponent);
config.setDocumentHandler((XMLDocumentHandler) validatorComponent); ((XMLDocumentSource)validatorComponent).setDocumentHandler(domParser); domParser.setDocumentSource((XMLDocumentSource) validatorComponent);