1 package com.thaiopensource.relaxng.jarv; 2 3 import com.thaiopensource.relaxng.impl.Pattern; 4 import com.thaiopensource.relaxng.impl.SchemaPatternBuilder; 5 import com.thaiopensource.relaxng.impl.ValidatorPatternBuilder; 6 import org.iso_relax.verifier.Schema; 7 import org.iso_relax.verifier.Verifier; 8 import org.iso_relax.verifier.VerifierConfigurationException; 9 10 class SchemaImpl implements Schema { 11 private final SchemaPatternBuilder spb; 12 private final Pattern start; 13 14 SchemaImpl(Pattern start, SchemaPatternBuilder spb) { 15 this.start = start; 16 this.spb = spb; 17 } 18 19 public Verifier newVerifier() throws VerifierConfigurationException { 20 return new VerifierImpl(start, new ValidatorPatternBuilder(spb)); 21 } 22 } 23 | Popular Tags |