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

com.thaiopensource.relaxng.jarv.SchemaImpl Maven / Gradle / Ivy

Go to download

A branch of Jing used by the Nu Html Checker. (Jing is a tool for validating documents against RelaxNG schemas.)

The newest version!
package com.thaiopensource.relaxng.jarv;

import com.thaiopensource.relaxng.impl.Pattern;
import com.thaiopensource.relaxng.impl.SchemaPatternBuilder;
import com.thaiopensource.relaxng.impl.ValidatorPatternBuilder;
import org.iso_relax.verifier.Schema;
import org.iso_relax.verifier.Verifier;
import org.iso_relax.verifier.VerifierConfigurationException;

class SchemaImpl implements Schema {
  private final SchemaPatternBuilder spb;
  private final Pattern start;

  SchemaImpl(Pattern start, SchemaPatternBuilder spb) {
    this.start = start;
    this.spb = spb;
  }

  public Verifier newVerifier() throws VerifierConfigurationException {
    return new VerifierImpl(start, new ValidatorPatternBuilder(spb));
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy