public CompiledSchemaImpl(Map validatorPrototypes) {
this.validatorPrototypes = validatorPrototypes;
}
public ElementValidator getElementValidator(ElementType type) {
PrototypeElementValidator prototype = (PrototypeElementValidator)
validatorPrototypes.get(type);
if (prototype != null) {
return prototype.createValidator();
}
return null;
}