~ubuntu-branches/debian/wheezy/jing-trang/wheezy

« back to all changes in this revision

Viewing changes to mod/rng-jarv/src/main/com/thaiopensource/relaxng/jarv/VerifierFactoryLoaderImpl.java

  • Committer: Bazaar Package Importer
  • Author(s): Samuel Thibault
  • Date: 2009-09-01 15:53:03 UTC
  • Revision ID: james.westby@ubuntu.com-20090901155303-2kweef05h5v9j3ni
Tags: upstream-20090818
ImportĀ upstreamĀ versionĀ 20090818

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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 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
}