KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > thaiopensource > validate > schematron > SchemaImpl


1 package com.thaiopensource.validate.schematron;
2
3 import com.thaiopensource.util.PropertyId;
4 import com.thaiopensource.util.PropertyMap;
5 import com.thaiopensource.validate.AbstractSchema;
6 import com.thaiopensource.validate.Validator;
7
8 import javax.xml.transform.Templates JavaDoc;
9
10 class SchemaImpl extends AbstractSchema {
11   private final Templates JavaDoc templates;
12
13   SchemaImpl(Templates JavaDoc templates, PropertyMap properties, PropertyId[] supportedPropertyIds) {
14     super(properties, supportedPropertyIds);
15     this.templates = templates;
16   }
17
18   public Validator createValidator(PropertyMap properties) {
19     return new ValidatorImpl(templates, properties);
20   }
21 }
22
Popular Tags