com.sun.org.apache.xerces.internal.xni.parser.XMLDocumentSource

Here are the examples of the java api class com.sun.org.apache.xerces.internal.xni.parser.XMLDocumentSource taken from open source projects.

1. XPointerParserConfiguration#configureXML11Pipeline()

Project: openjdk
File: XPointerParserConfiguration.java
// configurePipeline()
protected void configureXML11Pipeline() {
    super.configureXML11Pipeline();
    // configure XML 1.1. DTD pipeline
    fXML11DTDScanner.setDTDHandler(fXML11DTDProcessor);
    fXML11DTDProcessor.setDTDSource(fXML11DTDScanner);
    fDTDProcessor.setDTDHandler(fXIncludeHandler);
    fXIncludeHandler.setDTDSource(fXML11DTDProcessor);
    fXIncludeHandler.setDTDHandler(fXPointerHandler);
    fXPointerHandler.setDTDSource(fXIncludeHandler);
    fXPointerHandler.setDTDHandler(fDTDHandler);
    if (fDTDHandler != null) {
        fDTDHandler.setDTDSource(fXPointerHandler);
    }
    // configure XML document pipeline: insert after DTDValidator and
    // before XML Schema validator
    XMLDocumentSource prev = null;
    if (fFeatures.get(XMLSCHEMA_VALIDATION) == Boolean.TRUE) {
        // we don't have to worry about fSchemaValidator being null, since
        // super.configurePipeline() instantiated it if the feature was set
        prev = fSchemaValidator.getDocumentSource();
    } else // Otherwise, insert after the last component in the pipeline
    {
        prev = fLastComponent;
        fLastComponent = fXPointerHandler;
    }
    XMLDocumentHandler next = prev.getDocumentHandler();
    prev.setDocumentHandler(fXIncludeHandler);
    fXIncludeHandler.setDocumentSource(prev);
    if (next != null) {
        fXIncludeHandler.setDocumentHandler(next);
        next.setDocumentSource(fXIncludeHandler);
    }
    fXIncludeHandler.setDocumentHandler(fXPointerHandler);
    fXPointerHandler.setDocumentSource(fXIncludeHandler);
}

2. XPointerParserConfiguration#configurePipeline()

Project: openjdk
File: XPointerParserConfiguration.java
// <init>(SymbolTable,XMLGrammarPool)}
/** Configures the pipeline. */
protected void configurePipeline() {
    super.configurePipeline();
    //configure DTD pipeline
    fDTDScanner.setDTDHandler(fDTDProcessor);
    fDTDProcessor.setDTDSource(fDTDScanner);
    fDTDProcessor.setDTDHandler(fXIncludeHandler);
    fXIncludeHandler.setDTDSource(fDTDProcessor);
    fXIncludeHandler.setDTDHandler(fXPointerHandler);
    fXPointerHandler.setDTDSource(fXIncludeHandler);
    fXPointerHandler.setDTDHandler(fDTDHandler);
    if (fDTDHandler != null) {
        fDTDHandler.setDTDSource(fXPointerHandler);
    }
    // configure XML document pipeline: insert after DTDValidator and
    // before XML Schema validator
    XMLDocumentSource prev = null;
    if (fFeatures.get(XMLSCHEMA_VALIDATION) == Boolean.TRUE) {
        // we don't have to worry about fSchemaValidator being null, since
        // super.configurePipeline() instantiated it if the feature was set
        prev = fSchemaValidator.getDocumentSource();
    } else // Otherwise, insert after the last component in the pipeline
    {
        prev = fLastComponent;
        fLastComponent = fXPointerHandler;
    }
    XMLDocumentHandler next = prev.getDocumentHandler();
    prev.setDocumentHandler(fXIncludeHandler);
    fXIncludeHandler.setDocumentSource(prev);
    if (next != null) {
        fXIncludeHandler.setDocumentHandler(next);
        next.setDocumentSource(fXIncludeHandler);
    }
    fXIncludeHandler.setDocumentHandler(fXPointerHandler);
    fXPointerHandler.setDocumentSource(fXIncludeHandler);
}

3. XIncludeParserConfiguration#configureXML11Pipeline()

Project: openjdk
File: XIncludeParserConfiguration.java
// configurePipeline()
protected void configureXML11Pipeline() {
    super.configureXML11Pipeline();
    // configure XML 1.1. DTD pipeline
    fXML11DTDScanner.setDTDHandler(fXML11DTDProcessor);
    fXML11DTDProcessor.setDTDSource(fXML11DTDScanner);
    fXML11DTDProcessor.setDTDHandler(fXIncludeHandler);
    fXIncludeHandler.setDTDSource(fXML11DTDProcessor);
    fXIncludeHandler.setDTDHandler(fDTDHandler);
    if (fDTDHandler != null) {
        fDTDHandler.setDTDSource(fXIncludeHandler);
    }
    // configure XML document pipeline: insert after DTDValidator and
    // before XML Schema validator
    XMLDocumentSource prev = null;
    if (fFeatures.get(XMLSCHEMA_VALIDATION) == Boolean.TRUE) {
        // we don't have to worry about fSchemaValidator being null, since
        // super.configurePipeline() instantiated it if the feature was set
        prev = fSchemaValidator.getDocumentSource();
    } else // Otherwise, insert after the last component in the pipeline
    {
        prev = fLastComponent;
        fLastComponent = fXIncludeHandler;
    }
    XMLDocumentHandler next = prev.getDocumentHandler();
    prev.setDocumentHandler(fXIncludeHandler);
    fXIncludeHandler.setDocumentSource(prev);
    if (next != null) {
        fXIncludeHandler.setDocumentHandler(next);
        next.setDocumentSource(fXIncludeHandler);
    }
}

4. XIncludeParserConfiguration#configurePipeline()

Project: openjdk
File: XIncludeParserConfiguration.java
// <init>(SymbolTable,XMLGrammarPool)}
/** Configures the pipeline. */
protected void configurePipeline() {
    super.configurePipeline();
    //configure DTD pipeline
    fDTDScanner.setDTDHandler(fDTDProcessor);
    fDTDProcessor.setDTDSource(fDTDScanner);
    fDTDProcessor.setDTDHandler(fXIncludeHandler);
    fXIncludeHandler.setDTDSource(fDTDProcessor);
    fXIncludeHandler.setDTDHandler(fDTDHandler);
    if (fDTDHandler != null) {
        fDTDHandler.setDTDSource(fXIncludeHandler);
    }
    // configure XML document pipeline: insert after DTDValidator and
    // before XML Schema validator
    XMLDocumentSource prev = null;
    if (fFeatures.get(XMLSCHEMA_VALIDATION) == Boolean.TRUE) {
        // we don't have to worry about fSchemaValidator being null, since
        // super.configurePipeline() instantiated it if the feature was set
        prev = fSchemaValidator.getDocumentSource();
    } else // Otherwise, insert after the last component in the pipeline
    {
        prev = fLastComponent;
        fLastComponent = fXIncludeHandler;
    }
    if (prev != null) {
        XMLDocumentHandler next = prev.getDocumentHandler();
        prev.setDocumentHandler(fXIncludeHandler);
        fXIncludeHandler.setDocumentSource(prev);
        if (next != null) {
            fXIncludeHandler.setDocumentHandler(next);
            next.setDocumentSource(fXIncludeHandler);
        }
    } else {
        setDocumentHandler(fXIncludeHandler);
    }
}