FileDocCategorySizeDatePackage
ValidationManager.javaAPI DocApache Xerces 3.0.12836Fri Sep 14 20:33:52 BST 2007org.apache.xerces.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.
xerces.internal
author
Elena Litani, IBM
version
$Id: ValidationManager.java 446719 2006-09-15 20:32:39Z mrglavas $

Fields Summary
protected final Vector
fVSs
protected boolean
fGrammarFound
protected boolean
fCachedDTD
Constructors Summary
Methods Summary
public final voidaddValidationState(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(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;