1 16 17 package org.apache.xerces.impl.validation; 18 19 import java.util.Vector ; 20 21 33 public class ValidationManager { 34 35 protected final Vector fVSs = new Vector (); 36 protected boolean fGrammarFound = false; 37 38 protected boolean fCachedDTD = false; 42 43 47 public final void addValidationState(ValidationState vs) { 48 fVSs.addElement(vs); 49 } 50 51 54 public final void setEntityState(EntityState state) { 55 for (int i = fVSs.size()-1; i >= 0; i--) { 56 ((ValidationState)fVSs.elementAt(i)).setEntityState(state); 57 } 58 } 59 60 public final void setGrammarFound(boolean grammar){ 61 fGrammarFound = grammar; 62 } 63 64 public final boolean isGrammarFound(){ 65 return fGrammarFound; 66 } 67 68 public final void setCachedDTD(boolean cachedDTD) { 69 fCachedDTD = cachedDTD; 70 } 72 public final boolean isCachedDTD() { 73 return fCachedDTD; 74 } 76 77 public final void reset (){ 78 fVSs.removeAllElements(); 79 fGrammarFound = false; 80 fCachedDTD = false; 81 } 82 } 83 | Popular Tags |