FileDocCategorySizeDatePackage
InsulatedSchemaValidator.javaAPI DocJava SE 5 API4528Fri Aug 26 14:55:54 BST 2005com.sun.org.apache.xerces.internal.jaxp.validation.xs

InsulatedSchemaValidator

public class InsulatedSchemaValidator extends com.sun.org.apache.xerces.internal.jaxp.validation.InsulatedValidatorComponent
author
Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)

Fields Summary
private final XMLGrammarPool
pool
We don't want the {@link XMLSchemaValidator} to use the grammar pool provided by the parser, so that we can exclusively contrl the set of schemas used.
private final boolean
ignoreLocationHints
True to ignore schema location hints.
Constructors Summary
InsulatedSchemaValidator(XMLGrammarPool _pool, boolean _ignoreLocationHints)

        super( new XMLSchemaValidator() );
        this.pool = _pool;
        this.ignoreLocationHints = _ignoreLocationHints;
    
Methods Summary
public booleangetFeature(java.lang.String propName)

        if( propName.equals(XercesConstants.IGNORE_SCHEMA_LOCATION_HINTS) )
            return ignoreLocationHints;
        if( propName.equals(Constants.XERCES_FEATURE_PREFIX + Constants.CHANGE_IGNORABLE_CHARACTERS_INTO_IGNORABLE_WHITESPACES) )
            return true;
        if( propName.equals(Constants.XERCES_FEATURE_PREFIX + Constants.SCHEMA_ELEMENT_DEFAULT) )
            return true;
        return super.getFeature(propName);
    
public java.lang.ObjectgetProperty(java.lang.String propName)

        if( propName.equals(XercesConstants.XMLGRAMMAR_POOL) )
            return pool;
        return super.getProperty(propName);