1 57 58 package com.sun.org.apache.xerces.internal.impl.validation; 59 60 import java.util.Vector ; 61 62 72 public class ValidationManager { 73 74 protected final Vector fVSs = new Vector (); 75 protected boolean fGrammarFound = false; 76 77 protected boolean fCachedDTD = false; 81 82 86 public final void addValidationState(ValidationState vs) { 87 fVSs.addElement(vs); 88 } 89 90 93 public final void setEntityState(EntityState state) { 94 for (int i = fVSs.size()-1; i >= 0; i--) { 95 ((ValidationState)fVSs.elementAt(i)).setEntityState(state); 96 } 97 } 98 99 public final void setGrammarFound(boolean grammar){ 100 fGrammarFound = grammar; 101 } 102 103 public final boolean isGrammarFound(){ 104 return fGrammarFound; 105 } 106 107 public final void setCachedDTD(boolean cachedDTD) { 108 fCachedDTD = cachedDTD; 109 } 111 public final boolean isCachedDTD() { 112 return fCachedDTD; 113 } 115 116 public final void reset (){ 117 fVSs.removeAllElements(); 118 fGrammarFound = false; 119 fCachedDTD = false; 120 } 121 } 122 | Popular Tags |