com.sun.xml.internal.xsom.parser.XMLParser Java Examples
The following examples show how to use
com.sun.xml.internal.xsom.parser.XMLParser.
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: ParserContext.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
public ParserContext( XSOMParser owner, XMLParser parser ) { this.owner = owner; this.parser = parser; try { parse(new InputSource(ParserContext.class.getResource("datatypes.xsd").toExternalForm())); SchemaImpl xs = (SchemaImpl) schemaSet.getSchema("http://www.w3.org/2001/XMLSchema"); xs.addSimpleType(schemaSet.anySimpleType,true); xs.addComplexType(schemaSet.anyType,true); } catch( SAXException e ) { // this must be a bug of XSOM if(e.getException()!=null) e.getException().printStackTrace(); else e.printStackTrace(); throw new InternalError(); } }
Example #2
Source File: ParserContext.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
public ParserContext( XSOMParser owner, XMLParser parser ) { this.owner = owner; this.parser = parser; try { parse(new InputSource(ParserContext.class.getResource("datatypes.xsd").toExternalForm())); SchemaImpl xs = (SchemaImpl) schemaSet.getSchema("http://www.w3.org/2001/XMLSchema"); xs.addSimpleType(schemaSet.anySimpleType,true); xs.addComplexType(schemaSet.anyType,true); } catch( SAXException e ) { // this must be a bug of XSOM if(e.getException()!=null) e.getException().printStackTrace(); else e.printStackTrace(); throw new InternalError(); } }
Example #3
Source File: ParserContext.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
public ParserContext( XSOMParser owner, XMLParser parser ) { this.owner = owner; this.parser = parser; try { parse(new InputSource(ParserContext.class.getResource("datatypes.xsd").toExternalForm())); SchemaImpl xs = (SchemaImpl) schemaSet.getSchema("http://www.w3.org/2001/XMLSchema"); xs.addSimpleType(schemaSet.anySimpleType,true); xs.addComplexType(schemaSet.anyType,true); } catch( SAXException e ) { // this must be a bug of XSOM if(e.getException()!=null) e.getException().printStackTrace(); else e.printStackTrace(); throw new InternalError(); } }
Example #4
Source File: ParserContext.java From hottub with GNU General Public License v2.0 | 6 votes |
public ParserContext( XSOMParser owner, XMLParser parser ) { this.owner = owner; this.parser = parser; try { parse(new InputSource(ParserContext.class.getResource("datatypes.xsd").toExternalForm())); SchemaImpl xs = (SchemaImpl) schemaSet.getSchema("http://www.w3.org/2001/XMLSchema"); xs.addSimpleType(schemaSet.anySimpleType,true); xs.addComplexType(schemaSet.anyType,true); } catch( SAXException e ) { // this must be a bug of XSOM if(e.getException()!=null) e.getException().printStackTrace(); else e.printStackTrace(); throw new InternalError(); } }
Example #5
Source File: ParserContext.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public ParserContext( XSOMParser owner, XMLParser parser ) { this.owner = owner; this.parser = parser; try { parse(new InputSource(ParserContext.class.getResource("datatypes.xsd").toExternalForm())); SchemaImpl xs = (SchemaImpl) schemaSet.getSchema("http://www.w3.org/2001/XMLSchema"); xs.addSimpleType(schemaSet.anySimpleType,true); xs.addComplexType(schemaSet.anyType,true); } catch( SAXException e ) { // this must be a bug of XSOM if(e.getException()!=null) e.getException().printStackTrace(); else e.printStackTrace(); throw new InternalError(); } }
Example #6
Source File: ParserContext.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
public ParserContext( XSOMParser owner, XMLParser parser ) { this.owner = owner; this.parser = parser; try (InputStream is = ParserContext.class.getResourceAsStream("datatypes.xsd")) { InputSource source = new InputSource(is); source.setSystemId("datatypes.xsd"); parse(source); SchemaImpl xs = (SchemaImpl) schemaSet.getSchema("http://www.w3.org/2001/XMLSchema"); xs.addSimpleType(schemaSet.anySimpleType,true); xs.addComplexType(schemaSet.anyType,true); } catch( SAXException | IOException e ) { // this must be a bug of XSOM throw new InternalError(e.getMessage()); } }
Example #7
Source File: ParserContext.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public ParserContext( XSOMParser owner, XMLParser parser ) { this.owner = owner; this.parser = parser; try { parse(new InputSource(ParserContext.class.getResource("datatypes.xsd").toExternalForm())); SchemaImpl xs = (SchemaImpl) schemaSet.getSchema("http://www.w3.org/2001/XMLSchema"); xs.addSimpleType(schemaSet.anySimpleType,true); xs.addComplexType(schemaSet.anyType,true); } catch( SAXException e ) { // this must be a bug of XSOM if(e.getException()!=null) e.getException().printStackTrace(); else e.printStackTrace(); throw new InternalError(); } }
Example #8
Source File: ParserContext.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
public ParserContext( XSOMParser owner, XMLParser parser ) { this.owner = owner; this.parser = parser; try { parse(new InputSource(ParserContext.class.getResource("datatypes.xsd").toExternalForm())); SchemaImpl xs = (SchemaImpl) schemaSet.getSchema("http://www.w3.org/2001/XMLSchema"); xs.addSimpleType(schemaSet.anySimpleType,true); xs.addComplexType(schemaSet.anyType,true); } catch( SAXException e ) { // this must be a bug of XSOM if(e.getException()!=null) e.getException().printStackTrace(); else e.printStackTrace(); throw new InternalError(); } }
Example #9
Source File: ModelLoader.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * Potentially problematic - make sure the parser instance passed is initialized * with proper security feature. * * @param parser * @return */ public XSOMParser createXSOMParser(XMLParser parser) { // set up other parameters to XSOMParser XSOMParser reader = new XSOMParser(new XMLSchemaParser(parser)); reader.setAnnotationParser(new AnnotationParserFactoryImpl(opt)); reader.setErrorHandler(errorReceiver); reader.setEntityResolver(opt.entityResolver); return reader; }
Example #10
Source File: ModelLoader.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * Potentially problematic - make sure the parser instance passed is initialized * with proper security feature. * * @param parser * @return */ public XSOMParser createXSOMParser(XMLParser parser) { // set up other parameters to XSOMParser XSOMParser reader = new XSOMParser(new XMLSchemaParser(parser)); reader.setAnnotationParser(new AnnotationParserFactoryImpl(opt)); reader.setErrorHandler(errorReceiver); reader.setEntityResolver(opt.entityResolver); return reader; }
Example #11
Source File: ModelLoader.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * Potentially problematic - make sure the parser instance passed is initialized * with proper security feature. * * @param parser * @return */ public XSOMParser createXSOMParser(XMLParser parser) { // set up other parameters to XSOMParser XSOMParser reader = new XSOMParser(new XMLSchemaParser(parser)); reader.setAnnotationParser(new AnnotationParserFactoryImpl(opt)); reader.setErrorHandler(errorReceiver); reader.setEntityResolver(opt.entityResolver); return reader; }
Example #12
Source File: ModelLoader.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * Potentially problematic - make sure the parser instance passed is initialized * with proper security feature. * * @param parser * @return */ public XSOMParser createXSOMParser(XMLParser parser) { // set up other parameters to XSOMParser XSOMParser reader = new XSOMParser(new XMLSchemaParser(parser)); reader.setAnnotationParser(new AnnotationParserFactoryImpl(opt)); reader.setErrorHandler(errorReceiver); reader.setEntityResolver(opt.entityResolver); return reader; }
Example #13
Source File: ModelLoader.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * Potentially problematic - make sure the parser instance passed is initialized * with proper security feature. * * @param parser * @return */ public XSOMParser createXSOMParser(XMLParser parser) { // set up other parameters to XSOMParser XSOMParser reader = new XSOMParser(new XMLSchemaParser(parser)); reader.setAnnotationParser(new AnnotationParserFactoryImpl(opt)); reader.setErrorHandler(errorReceiver); reader.setEntityResolver(opt.entityResolver); return reader; }
Example #14
Source File: ModelLoader.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * Potentially problematic - make sure the parser instance passed is initialized * with proper security feature. * * @param parser * @return */ public XSOMParser createXSOMParser(XMLParser parser) { // set up other parameters to XSOMParser XSOMParser reader = new XSOMParser(new XMLSchemaParser(parser)); reader.setAnnotationParser(new AnnotationParserFactoryImpl(opt)); reader.setErrorHandler(errorReceiver); reader.setEntityResolver(opt.entityResolver); return reader; }
Example #15
Source File: ModelLoader.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * Potentially problematic - make sure the parser instance passed is initialized * with proper security feature. * * @param parser * @return */ public XSOMParser createXSOMParser(XMLParser parser) { // set up other parameters to XSOMParser XSOMParser reader = new XSOMParser(new XMLSchemaParser(parser)); reader.setAnnotationParser(new AnnotationParserFactoryImpl(opt)); reader.setErrorHandler(errorReceiver); reader.setEntityResolver(opt.entityResolver); return reader; }
Example #16
Source File: ModelLoader.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * Potentially problematic - make sure the parser instance passed is initialized * with proper security feature. * * @param parser * @return */ public XSOMParser createXSOMParser(XMLParser parser) { // set up other parameters to XSOMParser XSOMParser reader = new XSOMParser(new XMLSchemaParser(parser)); reader.setAnnotationParser(new AnnotationParserFactoryImpl(opt)); reader.setErrorHandler(errorReceiver); reader.setEntityResolver(opt.entityResolver); return reader; }
Example #17
Source File: DOMForestParser.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
/** * @param fallbackParser This parser will be used when DOMForestParser needs to parse * documents that are not in the forest. */ public DOMForestParser(DOMForest forest, XMLParser fallbackParser) { this.forest = forest; this.scanner = new DOMForestScanner(forest); this.fallbackParser = fallbackParser; }
Example #18
Source File: SAXParserFactoryAdaptor.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
public SAXParserFactoryAdaptor( XMLParser _parser ) { this.parser = _parser; }
Example #19
Source File: SAXParserFactoryAdaptor.java From hottub with GNU General Public License v2.0 | 4 votes |
public SAXParserFactoryAdaptor( XMLParser _parser ) { this.parser = _parser; }
Example #20
Source File: DOMForestParser.java From hottub with GNU General Public License v2.0 | 4 votes |
/** * @param fallbackParser This parser will be used when DOMForestParser needs to parse * documents that are not in the forest. */ public DOMForestParser(DOMForest forest, XMLParser fallbackParser) { this.forest = forest; this.scanner = new DOMForestScanner(forest); this.fallbackParser = fallbackParser; }
Example #21
Source File: DOMForestParser.java From hottub with GNU General Public License v2.0 | 4 votes |
/** * @param fallbackParser * This parser will be used when DOMForestParser needs to parse * documents that are not in the forest. */ DOMForestParser( DOMForest forest, XMLParser fallbackParser ) { this.forest = forest; this.scanner = new DOMForestScanner(forest); this.fallbackParser = fallbackParser; }
Example #22
Source File: ModelLoader.java From hottub with GNU General Public License v2.0 | 4 votes |
private XMLSchemaParser(XMLParser baseParser) { this.baseParser = baseParser; }
Example #23
Source File: ModelLoader.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
private XMLSchemaParser(XMLParser baseParser) { this.baseParser = baseParser; }
Example #24
Source File: DOMForestParser.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
/** * @param fallbackParser * This parser will be used when DOMForestParser needs to parse * documents that are not in the forest. */ DOMForestParser( DOMForest forest, XMLParser fallbackParser ) { this.forest = forest; this.scanner = new DOMForestScanner(forest); this.fallbackParser = fallbackParser; }
Example #25
Source File: SAXParserFactoryAdaptor.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
public SAXParserFactoryAdaptor( XMLParser _parser ) { this.parser = _parser; }
Example #26
Source File: DOMForestParser.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
/** * @param fallbackParser This parser will be used when DOMForestParser needs to parse * documents that are not in the forest. */ public DOMForestParser(DOMForest forest, XMLParser fallbackParser) { this.forest = forest; this.scanner = new DOMForestScanner(forest); this.fallbackParser = fallbackParser; }
Example #27
Source File: DOMForestParser.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
/** * @param fallbackParser * This parser will be used when DOMForestParser needs to parse * documents that are not in the forest. */ DOMForestParser( DOMForest forest, XMLParser fallbackParser ) { this.forest = forest; this.scanner = new DOMForestScanner(forest); this.fallbackParser = fallbackParser; }
Example #28
Source File: ModelLoader.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
private XMLSchemaParser(XMLParser baseParser) { this.baseParser = baseParser; }
Example #29
Source File: DOMForestParser.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
/** * @param fallbackParser This parser will be used when DOMForestParser needs to parse * documents that are not in the forest. */ public DOMForestParser(DOMForest forest, XMLParser fallbackParser) { this.forest = forest; this.scanner = new DOMForestScanner(forest); this.fallbackParser = fallbackParser; }
Example #30
Source File: SAXParserFactoryAdaptor.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
public SAXParserFactoryAdaptor( XMLParser _parser ) { this.parser = _parser; }