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

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

There is a newer version: 20151127.0.1
Show newest version
package com.thaiopensource.relaxng.jarv;

import com.thaiopensource.relaxng.pattern.Pattern;
import com.thaiopensource.relaxng.pattern.SchemaPatternBuilder;
import com.thaiopensource.relaxng.pattern.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