/** * DOCUMENT ME! * * @return the <code>XMLReader</code> used to parse SAX events * * @throws SAXException * DOCUMENT ME! */ public XMLReader getXMLReader() throws SAXException { if (xmlReader == null) { xmlReader = createXMLReader(); configureReader(); } return xmlReader; }
/** * Validates the given <code>Document</code> by writing it to a validating * SAX Parser. * * @param document * is the Document to validate * * @throws SAXException * if a validation error occurs * @throws RuntimeException * DOCUMENT ME! */ public void validate(Document document) throws SAXException { if (document != null) { XMLReader reader = getXMLReader(); if (errorHandler != null) { reader.setErrorHandler(errorHandler); } try { reader.parse(new DocumentInputSource(document)); } catch (IOException e) { throw new RuntimeException("Caught and exception that should " + "never happen: " + e); } } }
/** * Sets the <code>XMLReader</code> used to parse SAX events * * @param reader * is the <code>XMLReader</code> to parse SAX events * * @throws SAXException * DOCUMENT ME! */ public void setXMLReader(XMLReader reader) throws SAXException { this.xmlReader = reader; configureReader(); }
"file:" + schemePath); SAXValidator validator = new SAXValidator(parser.getXMLReader()); validator.setErrorHandler(errorHandler); validator.validate(doc);
/** * Sets the <code>XMLReader</code> used to parse SAX events * * @param reader * is the <code>XMLReader</code> to parse SAX events * * @throws SAXException * DOCUMENT ME! */ public void setXMLReader(XMLReader reader) throws SAXException { this.xmlReader = reader; configureReader(); }
/** * DOCUMENT ME! * * @return the <code>XMLReader</code> used to parse SAX events * * @throws SAXException * DOCUMENT ME! */ public XMLReader getXMLReader() throws SAXException { if (xmlReader == null) { xmlReader = createXMLReader(); configureReader(); } return xmlReader; }
/** * Sets the <code>XMLReader</code> used to parse SAX events * * @param reader * is the <code>XMLReader</code> to parse SAX events * * @throws SAXException * DOCUMENT ME! */ public void setXMLReader(XMLReader reader) throws SAXException { this.xmlReader = reader; configureReader(); }
/** * Validates the given <code>Document</code> by writing it to a validating * SAX Parser. * * @param document * is the Document to validate * * @throws SAXException * if a validation error occurs * @throws RuntimeException * DOCUMENT ME! */ public void validate(Document document) throws SAXException { if (document != null) { XMLReader reader = getXMLReader(); if (errorHandler != null) { reader.setErrorHandler(errorHandler); } try { reader.parse(new DocumentInputSource(document)); } catch (IOException e) { throw new RuntimeException("Caught and exception that should " + "never happen: " + e); } } }
/** * DOCUMENT ME! * * @return the <code>XMLReader</code> used to parse SAX events * * @throws SAXException * DOCUMENT ME! */ public XMLReader getXMLReader() throws SAXException { if (xmlReader == null) { xmlReader = createXMLReader(); configureReader(); } return xmlReader; }
/** * Sets the <code>XMLReader</code> used to parse SAX events * * @param reader * is the <code>XMLReader</code> to parse SAX events * * @throws SAXException * DOCUMENT ME! */ public void setXMLReader(XMLReader reader) throws SAXException { this.xmlReader = reader; configureReader(); }
/** * Validates the given <code>Document</code> by writing it to a validating * SAX Parser. * * @param document * is the Document to validate * * @throws SAXException * if a validation error occurs * @throws RuntimeException * DOCUMENT ME! */ public void validate(Document document) throws SAXException { if (document != null) { XMLReader reader = getXMLReader(); if (errorHandler != null) { reader.setErrorHandler(errorHandler); } try { reader.parse(new DocumentInputSource(document)); } catch (IOException e) { throw new RuntimeException("Caught and exception that should " + "never happen: " + e); } } }
/** * DOCUMENT ME! * * @return the <code>XMLReader</code> used to parse SAX events * * @throws SAXException * DOCUMENT ME! */ public XMLReader getXMLReader() throws SAXException { if (xmlReader == null) { xmlReader = createXMLReader(); configureReader(); } return xmlReader; }
/** * Sets the <code>XMLReader</code> used to parse SAX events * * @param reader * is the <code>XMLReader</code> to parse SAX events * * @throws SAXException * DOCUMENT ME! */ public void setXMLReader(XMLReader reader) throws SAXException { this.xmlReader = reader; configureReader(); }
/** * Validates the given <code>Document</code> by writing it to a validating * SAX Parser. * * @param document * is the Document to validate * * @throws SAXException * if a validation error occurs * @throws RuntimeException * DOCUMENT ME! */ public void validate(Document document) throws SAXException { if (document != null) { XMLReader reader = getXMLReader(); if (errorHandler != null) { reader.setErrorHandler(errorHandler); } try { reader.parse(new DocumentInputSource(document)); } catch (IOException e) { throw new RuntimeException("Caught and exception that should " + "never happen: " + e); } } }
/** * DOCUMENT ME! * * @return the <code>XMLReader</code> used to parse SAX events * * @throws SAXException * DOCUMENT ME! */ public XMLReader getXMLReader() throws SAXException { if (xmlReader == null) { xmlReader = createXMLReader(); configureReader(); } return xmlReader; }
/** * Sets the <code>XMLReader</code> used to parse SAX events * * @param reader * is the <code>XMLReader</code> to parse SAX events * * @throws SAXException * DOCUMENT ME! */ public void setXMLReader(XMLReader reader) throws SAXException { this.xmlReader = reader; configureReader(); }
/** * Validates the given <code>Document</code> by writing it to a validating * SAX Parser. * * @param document * is the Document to validate * * @throws SAXException * if a validation error occurs * @throws RuntimeException * DOCUMENT ME! */ public void validate(Document document) throws SAXException { if (document != null) { XMLReader reader = getXMLReader(); if (errorHandler != null) { reader.setErrorHandler(errorHandler); } try { reader.parse(new DocumentInputSource(document)); } catch (IOException e) { throw new RuntimeException("Caught and exception that should " + "never happen: " + e); } } }
/** * DOCUMENT ME! * * @return the <code>XMLReader</code> used to parse SAX events * * @throws SAXException * DOCUMENT ME! */ public XMLReader getXMLReader() throws SAXException { if (xmlReader == null) { xmlReader = createXMLReader(); configureReader(); } return xmlReader; }
/** * Sets the <code>XMLReader</code> used to parse SAX events * * @param reader * is the <code>XMLReader</code> to parse SAX events * * @throws SAXException * DOCUMENT ME! */ public void setXMLReader(XMLReader reader) throws SAXException { this.xmlReader = reader; configureReader(); }
/** * Validates the given <code>Document</code> by writing it to a validating * SAX Parser. * * @param document * is the Document to validate * * @throws SAXException * if a validation error occurs * @throws RuntimeException * DOCUMENT ME! */ public void validate(Document document) throws SAXException { if (document != null) { XMLReader reader = getXMLReader(); if (errorHandler != null) { reader.setErrorHandler(errorHandler); } try { reader.parse(new DocumentInputSource(document)); } catch (IOException e) { throw new RuntimeException("Caught and exception that should " + "never happen: " + e); } } }