KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > thaiopensource > relaxng > jarv > VerifierFactoryLoaderImpl


1 package com.thaiopensource.relaxng.jarv;
2
3 import org.iso_relax.verifier.VerifierFactory;
4 import org.iso_relax.verifier.VerifierFactoryLoader;
5 import com.thaiopensource.xml.util.WellKnownNamespaces;
6
7 public class VerifierFactoryLoaderImpl implements VerifierFactoryLoader {
8   public VerifierFactory createFactory(String JavaDoc schemaLanguage) {
9     if (schemaLanguage.equals(WellKnownNamespaces.RELAX_NG)
10         || schemaLanguage.equals(WellKnownNamespaces.RELAX_NG_0_9))
11       return new VerifierFactoryImpl();
12     return null;
13   }
14 }
15
Popular Tags