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

com.sun.msv.verifier.jarv.VerifierImpl Maven / Gradle / Ivy

There is a newer version: 2.2.5.1
Show newest version
/*
 * @(#)$Id: VerifierImpl.java,v 1.17 2003/06/09 20:37:43 kk122374 Exp $
 *
 * Copyright 2001 Sun Microsystems, Inc. All Rights Reserved.
 * 
 * This software is the proprietary information of Sun Microsystems, Inc.  
 * Use is subject to license terms.
 * 
 */
package com.sun.msv.verifier.jarv;

import org.iso_relax.verifier.VerifierConfigurationException;
import org.iso_relax.verifier.VerifierHandler;
import org.xml.sax.ErrorHandler;
import org.xml.sax.XMLReader;

import com.sun.msv.verifier.IVerifier;

/**
 * Verifier implementation.
 * 
 * @author Kohsuke KAWAGUCHI
 */
class VerifierImpl extends org.iso_relax.verifier.impl.VerifierImpl
{
    private final IVerifier verifier;
    
    VerifierImpl( IVerifier verifier, XMLReader reader ) throws VerifierConfigurationException {
        this.verifier = verifier;
        super.reader    = reader;
    }
    
    // we obtain XMLReader through the constructor.
    protected void prepareXMLReader() {}
    
    
    public void setErrorHandler( ErrorHandler handler ) {
        super.setErrorHandler(handler);
        verifier.setErrorHandler(handler);
    }
    
    public VerifierHandler getVerifierHandler() {
        return verifier;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy