KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > thaiopensource > relaxng > impl > FeasibleIdTypeMapSchema


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