/** * Creates a new XSOMParser that reads XML Schema from non-standard * inputs. * * By implementing the {@link XMLParser} interface, XML Schema * can be read from something other than XML. * * @param parser * This parser will be called to parse XML Schema documents. */ public XSOMParser(XMLParser parser) { context = new ParserContext(this,parser); }
/** * Creates a new instance of annotation parser. * * @return Annotation parser */ public AnnotationParser createAnnotationParser() { if(parser.getAnnotationParserFactory()==null) return DefaultAnnotationParser.theInstance; else return parser.getAnnotationParserFactory().create(); }
/** * Gets the parsed result. Don't call this method until * you parse all the schemas. * * @return * If there was any parse error, this method returns null. * To receive error information, specify your error handler * through the setErrorHandler method. * @exception SAXException * This exception will never be thrown unless it is thrown * by an error handler. */ public XSSchemaSet getResult() throws SAXException { return context.getResult(); }
public void fatalError(SAXParseException e) { setErrorFlag(); } };
/** * Parses the specified entity. * * @param importLocation * The source location of the import/include statement. * Used for reporting errors. */ public void parseEntity( InputSource source, boolean includeMode, String expectedNamespace, Locator importLocation ) throws SAXException { documentSystemId = source.getSystemId(); try { Schema s = new Schema(this,includeMode,expectedNamespace); setRootHandler(s); try { parser.parser.parse(source,this, getErrorHandler(), parser.getEntityResolver()); } catch( IOException fnfe ) { SAXParseException se = new SAXParseException(fnfe.toString(), importLocation, fnfe); parser.errorHandler.warning(se); } } catch( SAXException e ) { parser.setErrorFlag(); throw e; } }
/** * Parses a new XML Schema document. */ public void parse( InputSource source ) throws SAXException { newNGCCRuntime().parseEntity(source,false,null,null); }
/** * Parses a new XML Schema document. * * <p> * Note that if the {@link InputSource} does not have a system ID, * XSOM will fail to resolve them. */ public void parse( InputSource source ) throws SAXException { context.parse(source); }
EntityResolver er = parser.getEntityResolver(); String systemId = null;
public void fatalError(SAXParseException e) { setErrorFlag(); } };
/** * Parses the specified entity. * * @param importLocation * The source location of the import/include statement. * Used for reporting errors. */ public void parseEntity( InputSource source, boolean includeMode, String expectedNamespace, Locator importLocation ) throws SAXException { documentSystemId = source.getSystemId(); try { Schema s = new Schema(this,includeMode,expectedNamespace); setRootHandler(s); try { parser.parser.parse(source,this, getErrorHandler(), parser.getEntityResolver()); } catch( IOException fnfe ) { SAXParseException se = new SAXParseException(fnfe.toString(), importLocation, fnfe); parser.errorHandler.warning(se); } } catch( SAXException e ) { parser.setErrorFlag(); throw e; } }
/** * Parses a new XML Schema document. */ public void parse( InputSource source ) throws SAXException { newNGCCRuntime().parseEntity(source,false,null,null); }
/** * Parses a new XML Schema document. * * <p> * Note that if the {@link InputSource} does not have a system ID, * XSOM will fail to resolve them. */ public void parse( InputSource source ) throws SAXException { context.parse(source); }
EntityResolver er = parser.getEntityResolver(); String systemId = null;
public void fatalError(SAXParseException e) { setErrorFlag(); } };
parser.parser.parse(source,this, getErrorHandler(), parser.getEntityResolver()); } catch( IOException e ) { SAXParseException se = new SAXParseException( parser.setErrorFlag(); throw e;
/** * Parses a new XML Schema document. */ public void parse( InputSource source ) throws SAXException { newNGCCRuntime().parseEntity(source,false,null,null); }
/** * Parses a new XML Schema document. * * <p> * Note that if the {@link InputSource} does not have a system ID, * XSOM will fail to resolve them. */ public void parse( InputSource source ) throws SAXException { context.parse(source); }
EntityResolver er = parser.getEntityResolver(); String systemId = null;
/** * Creates a new instance of annotation parser. */ public AnnotationParser createAnnotationParser() { if(parser.getAnnotationParserFactory()==null) return DefaultAnnotationParser.theInstance; else return parser.getAnnotationParserFactory().create(); }
/** * Creates a new XSOMParser that reads XML Schema from non-standard * inputs. * * By implementing the {@link XMLParser} interface, XML Schema * can be read from something other than XML. * * @param parser * This parser will be called to parse XML Schema documents. */ public XSOMParser(XMLParser parser) { context = new ParserContext(this,parser); }