001 package com.thaiopensource.validate.xerces; 002 003 import com.thaiopensource.util.PropertyMap; 004 import com.thaiopensource.util.PropertyId; 005 import com.thaiopensource.validate.Schema; 006 import com.thaiopensource.validate.Validator; 007 import com.thaiopensource.validate.AbstractSchema; 008 import org.apache.xerces.util.SymbolTable; 009 import org.apache.xerces.xni.grammars.XMLGrammarPool; 010 011 class SchemaImpl extends AbstractSchema { 012 private final SymbolTable symbolTable; 013 private final XMLGrammarPool grammarPool; 014 015 SchemaImpl(SymbolTable symbolTable, 016 XMLGrammarPool grammarPool, 017 PropertyMap properties, 018 PropertyId[] supportedPropertyIds) { 019 super(properties, supportedPropertyIds); 020 this.symbolTable = symbolTable; 021 this.grammarPool = grammarPool; 022 } 023 024 public Validator createValidator(PropertyMap properties) { 025 return new ValidatorImpl(symbolTable, grammarPool, properties); 026 } 027 }