net.sf.bvalid
Class ValidatorFactory

java.lang.Object
  extended by net.sf.bvalid.ValidatorFactory

public abstract class ValidatorFactory
extends java.lang.Object

Provides methods for getting Validator instances.

Author:
cwilper@cs.cornell.edu

Constructor Summary
ValidatorFactory()
           
 
Method Summary
static Validator getValidator(SchemaLanguage lang, java.io.File cacheDir, java.util.Map options)
          Get a validator with automatic schema file caching.
static Validator getValidator(SchemaLanguage lang, java.util.Map validatorOptions)
          Get a validator without any schema file caching.
static Validator getValidator(SchemaLanguage lang, SchemaLocator locator, java.util.Map options)
          Get a validator that uses the provided SchemaLocator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidatorFactory

public ValidatorFactory()
Method Detail

getValidator

public static Validator getValidator(SchemaLanguage lang,
                                     java.util.Map validatorOptions)
                              throws ValidatorException
Get a validator without any schema file caching.

Throws:
ValidatorException

getValidator

public static Validator getValidator(SchemaLanguage lang,
                                     java.io.File cacheDir,
                                     java.util.Map options)
                              throws ValidatorException
Get a validator with automatic schema file caching.

Throws:
ValidatorException

getValidator

public static Validator getValidator(SchemaLanguage lang,
                                     SchemaLocator locator,
                                     java.util.Map options)
                              throws ValidatorException
Get a validator that uses the provided SchemaLocator.

Throws:
ValidatorException