public XMLValidator createValidator(ValidationContext ctxt) throws XMLStreamException { REDocumentDeclaration dd = new REDocumentDeclaration(mGrammar); return new GenericMsvValidator(this, ctxt, dd); } }
@Override public XMLValidator createValidator(ValidationContext ctxt) throws XMLStreamException { REDocumentDeclaration dd = new REDocumentDeclaration(mGrammar); return new GenericMsvValidator(this, ctxt, dd); } }
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); }
public IslandVerifier createTopLevelVerifier() { return new TREXIslandVerifier( new RulesAcceptor( new com.sun.msv.verifier.regexp.REDocumentDeclaration(topLevelExp,pool), topLevel ) ); }
public XMLValidator createValidator(ValidationContext ctxt) throws XMLStreamException { REDocumentDeclaration dd = new REDocumentDeclaration(mGrammar); return new RelaxNGValidator(this, ctxt, dd); } }
@Override public XMLValidator createValidator(ValidationContext ctxt) throws XMLStreamException { REDocumentDeclaration dd = new REDocumentDeclaration(mGrammar); return new GenericMsvValidator(this, ctxt, dd); } }
public IslandVerifier createTopLevelVerifier() { return new TREXIslandVerifier( new RulesAcceptor( new com.sun.msv.verifier.regexp.REDocumentDeclaration(topLevelExp,pool), topLevel ) ); }
private static REDocumentDeclaration wrapByVGM( Grammar g ) { if( g instanceof XMLSchemaGrammar ) return new XSREDocDecl((XMLSchemaGrammar)g); else return new REDocumentDeclaration(g); }
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); }
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); }
private static REDocumentDeclaration wrapByVGM( Grammar g ) { if( g instanceof XMLSchemaGrammar ) return new XSREDocDecl((XMLSchemaGrammar)g); else return new REDocumentDeclaration(g); }
@Override public XMLValidator createValidator(ValidationContext ctxt) throws XMLStreamException { REDocumentDeclaration dd = new REDocumentDeclaration(mGrammar); return new GenericMsvValidator(this, ctxt, dd); } }
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); }
public XMLValidator createValidator(ValidationContext ctxt) throws XMLStreamException { REDocumentDeclaration dd = new REDocumentDeclaration(mGrammar); return new GenericMsvValidator(this, ctxt, dd); } }
private static REDocumentDeclaration wrapByVGM( Grammar g ) { if( g instanceof XMLSchemaGrammar ) return new XSREDocDecl((XMLSchemaGrammar)g); else return new REDocumentDeclaration(g); }
private static REDocumentDeclaration wrapByVGM( Grammar g ) { if( g instanceof XMLSchemaGrammar ) return new XSREDocDecl((XMLSchemaGrammar)g); else return new REDocumentDeclaration(g); }
public IslandVerifier createNewVerifier( String namespace, ElementDecl[] rules ) { // see the class comment. // this method is invoked only under certain limited situations. DeclImpl[] ri = new DeclImpl[rules.length]; System.arraycopy( rules,0, ri,0, rules.length ); return new TREXIslandVerifier( new RulesAcceptor( new REDocumentDeclaration( getGrammar() ), ri ) ); }
public IslandVerifier createNewVerifier( String namespace, ElementDecl[] rules ) { // see the class comment. // this method is invoked only under certain limited situations. DeclImpl[] ri = new DeclImpl[rules.length]; System.arraycopy( rules,0, ri,0, rules.length ); return new TREXIslandVerifier( new RulesAcceptor( new REDocumentDeclaration( getGrammar() ), ri ) ); }
/** * creates a Verifier object to validate a document. * * <p> * override this method to use a different verifier implementation. */ protected IVerifier getVerifier( Grammar grammar ) { return new Verifier( new REDocumentDeclaration(grammar), new ReportErrorHandler() ); } }
/** * Creates a new instance of Verifier that will be used to validate * a document. */ protected IVerifier getVerifier( Grammar grammar ) { return new Verifier( new REDocumentDeclaration(grammar), new WordlessErrorReporter() ); } }