com.thaiopensource.relaxng.jarv.SchemaImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jing Show documentation
Show all versions of jing Show documentation
Jing - tool for validating RelaxNG - (OSGi-compatible 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