com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator Java Examples
The following examples show how to use
com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: IntegratedParserConfiguration.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
/** * Constructs a parser configuration using the specified symbol table, * grammar pool, and parent settings. * <p> * <strong>REVISIT:</strong> * Grammar pool will be updated when the new validation engine is * implemented. * * @param symbolTable The symbol table to use. * @param grammarPool The grammar pool to use. * @param parentSettings The parent settings. */ public IntegratedParserConfiguration(SymbolTable symbolTable, XMLGrammarPool grammarPool, XMLComponentManager parentSettings) { super(symbolTable, grammarPool, parentSettings); // create components fNonNSScanner = new XMLDocumentScannerImpl(); fNonNSDTDValidator = new XMLDTDValidator(); // add components addComponent((XMLComponent)fNonNSScanner); addComponent((XMLComponent)fNonNSDTDValidator); }
Example #2
Source File: IntegratedParserConfiguration.java From Bytecoder with Apache License 2.0 | 5 votes |
/** * Constructs a parser configuration using the specified symbol table, * grammar pool, and parent settings. * <p> * <strong>REVISIT:</strong> * Grammar pool will be updated when the new validation engine is * implemented. * * @param symbolTable The symbol table to use. * @param grammarPool The grammar pool to use. * @param parentSettings The parent settings. */ public IntegratedParserConfiguration(SymbolTable symbolTable, XMLGrammarPool grammarPool, XMLComponentManager parentSettings) { super(symbolTable, grammarPool, parentSettings); // create components fNonNSScanner = new XMLDocumentScannerImpl(); fNonNSDTDValidator = new XMLDTDValidator(); // add components addComponent((XMLComponent)fNonNSScanner); addComponent((XMLComponent)fNonNSDTDValidator); }
Example #3
Source File: IntegratedParserConfiguration.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * Constructs a parser configuration using the specified symbol table, * grammar pool, and parent settings. * <p> * <strong>REVISIT:</strong> * Grammar pool will be updated when the new validation engine is * implemented. * * @param symbolTable The symbol table to use. * @param grammarPool The grammar pool to use. * @param parentSettings The parent settings. */ public IntegratedParserConfiguration(SymbolTable symbolTable, XMLGrammarPool grammarPool, XMLComponentManager parentSettings) { super(symbolTable, grammarPool, parentSettings); // create components fNonNSScanner = new XMLDocumentScannerImpl(); fNonNSDTDValidator = new XMLDTDValidator(); // add components addComponent((XMLComponent)fNonNSScanner); addComponent((XMLComponent)fNonNSDTDValidator); }
Example #4
Source File: IntegratedParserConfiguration.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * Constructs a parser configuration using the specified symbol table, * grammar pool, and parent settings. * <p> * <strong>REVISIT:</strong> * Grammar pool will be updated when the new validation engine is * implemented. * * @param symbolTable The symbol table to use. * @param grammarPool The grammar pool to use. * @param parentSettings The parent settings. */ public IntegratedParserConfiguration(SymbolTable symbolTable, XMLGrammarPool grammarPool, XMLComponentManager parentSettings) { super(symbolTable, grammarPool, parentSettings); // create components fNonNSScanner = new XMLDocumentScannerImpl(); fNonNSDTDValidator = new XMLDTDValidator(); // add components addComponent((XMLComponent)fNonNSScanner); addComponent((XMLComponent)fNonNSDTDValidator); }
Example #5
Source File: IntegratedParserConfiguration.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * Constructs a parser configuration using the specified symbol table, * grammar pool, and parent settings. * <p> * <strong>REVISIT:</strong> * Grammar pool will be updated when the new validation engine is * implemented. * * @param symbolTable The symbol table to use. * @param grammarPool The grammar pool to use. * @param parentSettings The parent settings. */ public IntegratedParserConfiguration(SymbolTable symbolTable, XMLGrammarPool grammarPool, XMLComponentManager parentSettings) { super(symbolTable, grammarPool, parentSettings); // create components fNonNSScanner = new XMLDocumentScannerImpl(); fNonNSDTDValidator = new XMLDTDValidator(); // add components addComponent((XMLComponent)fNonNSScanner); addComponent((XMLComponent)fNonNSDTDValidator); }
Example #6
Source File: IntegratedParserConfiguration.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * Constructs a parser configuration using the specified symbol table, * grammar pool, and parent settings. * <p> * <strong>REVISIT:</strong> * Grammar pool will be updated when the new validation engine is * implemented. * * @param symbolTable The symbol table to use. * @param grammarPool The grammar pool to use. * @param parentSettings The parent settings. */ public IntegratedParserConfiguration(SymbolTable symbolTable, XMLGrammarPool grammarPool, XMLComponentManager parentSettings) { super(symbolTable, grammarPool, parentSettings); // create components fNonNSScanner = new XMLDocumentScannerImpl(); fNonNSDTDValidator = new XMLDTDValidator(); // add components addComponent((XMLComponent)fNonNSScanner); addComponent((XMLComponent)fNonNSDTDValidator); }
Example #7
Source File: IntegratedParserConfiguration.java From JDKSourceCode1.8 with MIT License | 5 votes |
/** * Constructs a parser configuration using the specified symbol table, * grammar pool, and parent settings. * <p> * <strong>REVISIT:</strong> * Grammar pool will be updated when the new validation engine is * implemented. * * @param symbolTable The symbol table to use. * @param grammarPool The grammar pool to use. * @param parentSettings The parent settings. */ public IntegratedParserConfiguration(SymbolTable symbolTable, XMLGrammarPool grammarPool, XMLComponentManager parentSettings) { super(symbolTable, grammarPool, parentSettings); // create components fNonNSScanner = new XMLDocumentScannerImpl(); fNonNSDTDValidator = new XMLDTDValidator(); // add components addComponent((XMLComponent)fNonNSScanner); addComponent((XMLComponent)fNonNSDTDValidator); }
Example #8
Source File: IntegratedParserConfiguration.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * Constructs a parser configuration using the specified symbol table, * grammar pool, and parent settings. * <p> * <strong>REVISIT:</strong> * Grammar pool will be updated when the new validation engine is * implemented. * * @param symbolTable The symbol table to use. * @param grammarPool The grammar pool to use. * @param parentSettings The parent settings. */ public IntegratedParserConfiguration(SymbolTable symbolTable, XMLGrammarPool grammarPool, XMLComponentManager parentSettings) { super(symbolTable, grammarPool, parentSettings); // create components fNonNSScanner = new XMLDocumentScannerImpl(); fNonNSDTDValidator = new XMLDTDValidator(); // add components addComponent((XMLComponent)fNonNSScanner); addComponent((XMLComponent)fNonNSDTDValidator); }
Example #9
Source File: IntegratedParserConfiguration.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * Constructs a parser configuration using the specified symbol table, * grammar pool, and parent settings. * <p> * <strong>REVISIT:</strong> * Grammar pool will be updated when the new validation engine is * implemented. * * @param symbolTable The symbol table to use. * @param grammarPool The grammar pool to use. * @param parentSettings The parent settings. */ public IntegratedParserConfiguration(SymbolTable symbolTable, XMLGrammarPool grammarPool, XMLComponentManager parentSettings) { super(symbolTable, grammarPool, parentSettings); // create components fNonNSScanner = new XMLDocumentScannerImpl(); fNonNSDTDValidator = new XMLDTDValidator(); // add components addComponent((XMLComponent)fNonNSScanner); addComponent((XMLComponent)fNonNSDTDValidator); }
Example #10
Source File: IntegratedParserConfiguration.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * Constructs a parser configuration using the specified symbol table, * grammar pool, and parent settings. * <p> * <strong>REVISIT:</strong> * Grammar pool will be updated when the new validation engine is * implemented. * * @param symbolTable The symbol table to use. * @param grammarPool The grammar pool to use. * @param parentSettings The parent settings. */ public IntegratedParserConfiguration(SymbolTable symbolTable, XMLGrammarPool grammarPool, XMLComponentManager parentSettings) { super(symbolTable, grammarPool, parentSettings); // create components fNonNSScanner = new XMLDocumentScannerImpl(); fNonNSDTDValidator = new XMLDTDValidator(); // add components addComponent((XMLComponent)fNonNSScanner); addComponent((XMLComponent)fNonNSDTDValidator); }
Example #11
Source File: IntegratedParserConfiguration.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * Constructs a parser configuration using the specified symbol table, * grammar pool, and parent settings. * <p> * <strong>REVISIT:</strong> * Grammar pool will be updated when the new validation engine is * implemented. * * @param symbolTable The symbol table to use. * @param grammarPool The grammar pool to use. * @param parentSettings The parent settings. */ public IntegratedParserConfiguration(SymbolTable symbolTable, XMLGrammarPool grammarPool, XMLComponentManager parentSettings) { super(symbolTable, grammarPool, parentSettings); // create components fNonNSScanner = new XMLDocumentScannerImpl(); fNonNSDTDValidator = new XMLDTDValidator(); // add components addComponent((XMLComponent)fNonNSScanner); addComponent((XMLComponent)fNonNSDTDValidator); }
Example #12
Source File: DTDConfiguration.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
/** Create a DTD validator. */ protected XMLDTDValidator createDTDValidator() { return new XMLDTDValidator(); }
Example #13
Source File: IntegratedParserConfiguration.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
/** Create a DTD validator: this validator performs namespace binding. */ protected XMLDTDValidator createDTDValidator() { return new XMLNSDTDValidator(); }
Example #14
Source File: IntegratedParserConfiguration.java From hottub with GNU General Public License v2.0 | 4 votes |
/** Create a DTD validator: this validator performs namespace binding. */ protected XMLDTDValidator createDTDValidator() { return new XMLNSDTDValidator(); }
Example #15
Source File: DTDConfiguration.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
/** Create a DTD validator. */ protected XMLDTDValidator createDTDValidator() { return new XMLDTDValidator(); }
Example #16
Source File: DTDConfiguration.java From hottub with GNU General Public License v2.0 | 4 votes |
/** Create a DTD validator. */ protected XMLDTDValidator createDTDValidator() { return new XMLDTDValidator(); }
Example #17
Source File: IntegratedParserConfiguration.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
/** Create a DTD validator: this validator performs namespace binding. */ protected XMLDTDValidator createDTDValidator() { return new XMLNSDTDValidator(); }
Example #18
Source File: DTDConfiguration.java From jdk1.8-source-analysis with Apache License 2.0 | 4 votes |
/** Create a DTD validator. */ protected XMLDTDValidator createDTDValidator() { return new XMLDTDValidator(); }
Example #19
Source File: DTDConfiguration.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
/** Create a DTD validator. */ protected XMLDTDValidator createDTDValidator() { return new XMLDTDValidator(); }
Example #20
Source File: IntegratedParserConfiguration.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
/** Create a DTD validator: this validator performs namespace binding. */ protected XMLDTDValidator createDTDValidator() { return new XMLNSDTDValidator(); }
Example #21
Source File: DOMNormalizer.java From Bytecoder with Apache License 2.0 | 4 votes |
private void processDTD(String xmlVersion, String schemaLocation) { String rootName = null; String publicId = null; String systemId = schemaLocation; String baseSystemId = fDocument.getDocumentURI(); String internalSubset = null; DocumentType docType = fDocument.getDoctype(); if (docType != null) { rootName = docType.getName(); publicId = docType.getPublicId(); if (systemId == null || systemId.length() == 0) { systemId = docType.getSystemId(); } internalSubset = docType.getInternalSubset(); } // If the DOM doesn't have a DocumentType node we may still // be able to fetch a DTD if the application provided a URI else { Element elem = fDocument.getDocumentElement(); if (elem == null) return; rootName = elem.getNodeName(); if (systemId == null || systemId.length() == 0) return; } XMLDTDLoader loader = null; try { fValidationHandler.doctypeDecl(rootName, publicId, systemId, null); loader = CoreDOMImplementationImpl.singleton.getDTDLoader(xmlVersion); loader.setFeature(DOMConfigurationImpl.XERCES_VALIDATION, true); loader.setEntityResolver(fConfiguration.getEntityResolver()); loader.setErrorHandler(fConfiguration.getErrorHandler()); loader.loadGrammarWithContext((XMLDTDValidator) fValidationHandler, rootName, publicId, systemId, baseSystemId, internalSubset); } // REVISIT: Should probably report this exception to the error handler. catch (IOException e) { } finally { if (loader != null) { CoreDOMImplementationImpl.singleton.releaseDTDLoader(xmlVersion, loader); } } }
Example #22
Source File: IntegratedParserConfiguration.java From Bytecoder with Apache License 2.0 | 4 votes |
/** Create a DTD validator: this validator performs namespace binding. */ protected XMLDTDValidator createDTDValidator() { return new XMLNSDTDValidator(); }
Example #23
Source File: DTDConfiguration.java From Bytecoder with Apache License 2.0 | 4 votes |
/** Create a DTD validator. */ protected XMLDTDValidator createDTDValidator() { return new XMLDTDValidator(); }
Example #24
Source File: IntegratedParserConfiguration.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
/** Create a DTD validator: this validator performs namespace binding. */ protected XMLDTDValidator createDTDValidator() { return new XMLNSDTDValidator(); }
Example #25
Source File: DTDConfiguration.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
/** Create a DTD validator. */ protected XMLDTDValidator createDTDValidator() { return new XMLDTDValidator(); }
Example #26
Source File: IntegratedParserConfiguration.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
/** Create a DTD validator: this validator performs namespace binding. */ protected XMLDTDValidator createDTDValidator() { return new XMLNSDTDValidator(); }
Example #27
Source File: DTDConfiguration.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
/** Create a DTD validator. */ protected XMLDTDValidator createDTDValidator() { return new XMLDTDValidator(); }
Example #28
Source File: IntegratedParserConfiguration.java From JDKSourceCode1.8 with MIT License | 4 votes |
/** Create a DTD validator: this validator performs namespace binding. */ protected XMLDTDValidator createDTDValidator() { return new XMLNSDTDValidator(); }
Example #29
Source File: DTDConfiguration.java From JDKSourceCode1.8 with MIT License | 4 votes |
/** Create a DTD validator. */ protected XMLDTDValidator createDTDValidator() { return new XMLDTDValidator(); }
Example #30
Source File: IntegratedParserConfiguration.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
/** Create a DTD validator: this validator performs namespace binding. */ protected XMLDTDValidator createDTDValidator() { return new XMLNSDTDValidator(); }