org.apache.commons.validator
Class ValidatorResourcesInitializer
java.lang.Object
org.apache.commons.validator.ValidatorResourcesInitializer
public class ValidatorResourcesInitializer
extends java.lang.Object
Maps an xml file to ValidatorResources
.
protected static Log | log - Subclasses should use their own logging instance.
|
protected static String[] | registrations - The set of public identifiers, and corresponding resource names, for
the versions of the configuration file DTDs that we know about.
|
static ValidatorResources | initialize(InputStream in) - Initializes a
ValidatorResources based on the
InputStream and automatically process the resources.
|
static ValidatorResources | initialize(String fileName) - Initializes a
ValidatorResources based on a
file path and automatically process the resources.
|
static void | initialize(ValidatorResources resources, InputStream in) - Initializes the
ValidatorResources based on the InputStream
and automatically process the resources.
|
static void | initialize(ValidatorResources resources, InputStream in, boolean process) - Initializes a
ValidatorResources based on the InputStream
and processes the resources based on the boolean passed in.
|
log
protected static Log log
Subclasses should use their own logging instance.
Logger.
registrations
protected static String[] registrations
The set of public identifiers, and corresponding resource names, for
the versions of the configuration file DTDs that we know about. There
MUST be an even number of Strings in this list!
initialize
public static ValidatorResources initialize(InputStream in)
throws IOException
Initializes a ValidatorResources
based on the
InputStream
and automatically process the resources.
in
- InputStream
for the xml resource.
initialize
public static ValidatorResources initialize(String fileName)
throws IOException
Initializes a ValidatorResources
based on a
file path and automatically process the resources.
fileName
- The file path for the xml resource.
initialize
public static void initialize(ValidatorResources resources,
InputStream in)
throws IOException
Initializes the ValidatorResources
based on the InputStream
and automatically process the resources.
resources
- Resources to initialize.in
- InputStream
for the xml resource.
initialize
public static void initialize(ValidatorResources resources,
InputStream in,
boolean process)
throws IOException
Initializes a ValidatorResources
based on the InputStream
and processes the resources based on the boolean
passed in.
resources
- Resources to initialize.in
- InputStream
for the xml resource.process
- Whether or not to call process on
ValidatorResources
.
Copyright (c) 2001-2004 Apache Software Foundation