REDocumentDeclaration always returns subclasses of {@link ExpressionAcceptor}as the Acceptor implementation. @author Kohsuke KAWAGUCHI
126127128129130131132
private static REDocumentDeclaration wrapByVGM( Grammar g ) { if( g instanceof XMLSchemaGrammar ) return new XSREDocDecl((XMLSchemaGrammar)g); else return new REDocumentDeclaration(g); }
356357358359360361362
public REDocumentDeclaration parseVGM( String url ) throws SAXException, ParserConfigurationException, java.io.IOException { Grammar g = _loadSchema(url); if(g==null) return null; else return new REDocumentDeclaration(g); }
364365366367368369370
public REDocumentDeclaration parseVGM( InputSource source ) throws SAXException, ParserConfigurationException, java.io.IOException { Grammar g = _loadSchema(source); if(g==null) return null; else return new REDocumentDeclaration(g); }