1 package com.thaiopensource.relaxng.impl; 2 3 import com.thaiopensource.util.PropertyMap; 4 import com.thaiopensource.validate.Schema; 5 import com.thaiopensource.validate.ValidateProperty; 6 import com.thaiopensource.validate.Validator; 7 import com.thaiopensource.validate.AbstractSchema; 8 import org.xml.sax.ErrorHandler ; 9 10 public class IdTypeMapSchema extends AbstractSchema { 11 private final IdTypeMap idTypeMap; 12 13 public IdTypeMapSchema(IdTypeMap idTypeMap, PropertyMap properties) { 14 super(properties); 15 this.idTypeMap = idTypeMap; 16 } 17 18 public Validator createValidator(PropertyMap properties) { 19 ErrorHandler eh = ValidateProperty.ERROR_HANDLER.get(properties); 20 return new IdSoundnessChecker(idTypeMap, eh); 21 } 22 } 23 | Popular Tags |