FileDocCategorySizeDatePackage
ValidationManager.javaAPI DocJava SE 5 API4641Fri Aug 26 14:55:48 BST 2005com.sun.org.apache.xerces.internal.impl.validation

ValidationManager

public class ValidationManager extends Object
ValidationManager is a coordinator property for validators in the pipeline. Each validator must know how to interact with this property. Validators are not required to know what kind of other validators present in the pipeline, but should understand that there are others and that some coordination is required.
author
Elena Litani, IBM
version
$Id: ValidationManager.java,v 1.8 2003/05/08 20:11:56 elena Exp $

Fields Summary
protected final Vector
fVSs
protected boolean
fGrammarFound
protected boolean
fCachedDTD
Constructors Summary
Methods Summary
public final voidaddValidationState(com.sun.org.apache.xerces.internal.impl.validation.ValidationState vs)
Each validator should call this method to add its ValidationState into the validation manager.

    
    
                       
         
        fVSs.addElement(vs);
    
public final booleanisCachedDTD()

        return fCachedDTD;
    
public final booleanisGrammarFound()

        return fGrammarFound;
    
public final voidreset()

        fVSs.removeAllElements();
        fGrammarFound = false;
        fCachedDTD = false;
    
public final voidsetCachedDTD(boolean cachedDTD)

        fCachedDTD = cachedDTD;
    
public final voidsetEntityState(com.sun.org.apache.xerces.internal.impl.validation.EntityState state)
Set the information required to validate entity values.

        for (int i = fVSs.size()-1; i >= 0; i--) {
            ((ValidationState)fVSs.elementAt(i)).setEntityState(state);
        }
    
public final voidsetGrammarFound(boolean grammar)

        fGrammarFound = grammar;