All Downloads are FREE. Search and download functionalities are using the official Maven repository.

msv.msv.test.batch.driver.IValidatorImplForRNG Maven / Gradle / Ivy

There is a newer version: 2.3.0
Show newest version
package batch.driver;

import org.iso_relax.verifier.Schema;

import com.sun.msv.grammar.ExpressionPool;
import com.sun.msv.reader.GrammarReader;
import com.sun.msv.reader.trex.ng.comp.RELAXNGCompReader;

/**
 * Driver for MSV as XML Schema validator.
 */
public class IValidatorImplForRNG extends IValidatorImpl {
    
    public IValidatorImplForRNG( boolean strict ) {
        super(strict);
    }
    
    protected Schema getSchemaForSchema() {
        return RELAXNGCompReader.getRELAXNGSchema4Schema();
    }
    
    protected GrammarReader getReader() {
        return new RELAXNGCompReader( createController(), factory, new ExpressionPool() );
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy