org.apache.commons.validator
Class FormSetFactory

java.lang.Object
  extended byorg.apache.commons.digester.AbstractObjectCreationFactory
      extended byorg.apache.commons.validator.FormSetFactory
All Implemented Interfaces:
org.apache.commons.digester.ObjectCreationFactory

public class FormSetFactory
extends org.apache.commons.digester.AbstractObjectCreationFactory

Factory class used by Digester to create FormSet's.

Since:
Validator 1.2

Field Summary
private static org.apache.commons.logging.Log log
          Logging
 
Fields inherited from class org.apache.commons.digester.AbstractObjectCreationFactory
digester
 
Constructor Summary
FormSetFactory()
           
 
Method Summary
private  FormSet createFormSet(ValidatorResources resources, java.lang.String language, java.lang.String country, java.lang.String variant)
          Create or retrieve a FormSet based on the language, country and variant.
 java.lang.Object createObject(org.xml.sax.Attributes attributes)
          Create or retrieve a FormSet for the specified attributes.
 
Methods inherited from class org.apache.commons.digester.AbstractObjectCreationFactory
getDigester, setDigester
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static final org.apache.commons.logging.Log log
Logging

Constructor Detail

FormSetFactory

public FormSetFactory()
Method Detail

createObject

public java.lang.Object createObject(org.xml.sax.Attributes attributes)
                              throws java.lang.Exception

Create or retrieve a FormSet for the specified attributes.

Parameters:
attributes - The sax attributes for the formset element.
Returns:
The FormSet for a locale.
Throws:
java.lang.Exception

createFormSet

private FormSet createFormSet(ValidatorResources resources,
                              java.lang.String language,
                              java.lang.String country,
                              java.lang.String variant)
                       throws java.lang.Exception

Create or retrieve a FormSet based on the language, country and variant.

Parameters:
resources - The validator resources.
language - The locale's language.
country - The locale's country.
variant - The locale's language variant.
Returns:
The FormSet for a locale.
Throws:
java.lang.Exception
Since:
Validator 1.2


Copyright (c) 2001-2004 Apache Software Foundation