KickJava   Java API By Example, From Geeks To Geeks.

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


1 package com.thaiopensource.validate.xerces;
2
3 import com.thaiopensource.util.PropertyMap;
4 import com.thaiopensource.util.PropertyId;
5 import com.thaiopensource.validate.Schema;
6 import com.thaiopensource.validate.Validator;
7 import com.thaiopensource.validate.AbstractSchema;
8 import org.apache.xerces.util.SymbolTable;
9 import org.apache.xerces.xni.grammars.XMLGrammarPool;
10
11 class SchemaImpl extends AbstractSchema {
12   private final SymbolTable symbolTable;
13   private final XMLGrammarPool grammarPool;
14
15   SchemaImpl(SymbolTable symbolTable,
16              XMLGrammarPool grammarPool,
17              PropertyMap properties,
18              PropertyId[] supportedPropertyIds) {
19     super(properties, supportedPropertyIds);
20     this.symbolTable = symbolTable;
21     this.grammarPool = grammarPool;
22   }
23
24   public Validator createValidator(PropertyMap properties) {
25     return new ValidatorImpl(symbolTable, grammarPool, properties);
26   }
27 }
28
Popular Tags