All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.thaiopensource.validate.xerces.SchemaImpl Maven / Gradle / Ivy

package com.thaiopensource.validate.xerces;

import com.thaiopensource.util.PropertyId;
import com.thaiopensource.util.PropertyMap;
import com.thaiopensource.validate.AbstractSchema;
import com.thaiopensource.validate.Validator;
import org.apache.xerces.util.SymbolTable;
import org.apache.xerces.xni.grammars.XMLGrammarPool;

class SchemaImpl extends AbstractSchema {
  private final SymbolTable symbolTable;
  private final XMLGrammarPool grammarPool;

  SchemaImpl(SymbolTable symbolTable,
             XMLGrammarPool grammarPool,
             PropertyMap properties,
             PropertyId[] supportedPropertyIds) {
    super(properties, supportedPropertyIds);
    this.symbolTable = symbolTable;
    this.grammarPool = grammarPool;
  }

  public Validator createValidator(PropertyMap properties) {
    return new ValidatorImpl(symbolTable, grammarPool, properties);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy