public com.sun.msv.grammar.Grammar getGrammar(String grammarID) throws Exception { return xmlGrammarCache.getGrammar(grammarID); }
public com.sun.msv.verifier.VerifierFilter getVerifierFilter( String grammarID, ErrorHandler errorHandler) throws Exception { return xmlGrammarCache.getVerifierFilter(grammarID, errorHandler); }
/** * Returns a thread-exclusive verifier instance. * * @param schemaUrl the URL of the schema to be used. * @return a thread-exclusive verifier instance. * @throws ParserConfigurationException if parser is badly configured. * @throws IOException if the schema does not exist. * @throws SAXException if the schema is malformed. */ public Verifier getVerifier(URL schemaUrl) throws SAXException, ParserConfigurationException, IOException { Grammar grammar = grammarCache.getGrammar(schemaUrl); DocumentDeclaration documentDeclaration = new REDocumentDeclaration(grammar); return new Verifier(documentDeclaration, errorHandler); }