Class FormSetFactory
java.lang.Object
org.apache.commons.digester.AbstractObjectCreationFactory
org.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
- Version:
- $Revision: 1649191 $
-
Field Summary
FieldsFields inherited from class org.apache.commons.digester.AbstractObjectCreationFactory
digester -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate FormSetcreateFormSet(ValidatorResources resources, String language, String country, String variant) Create or retrieve aFormSetbased on the language, country and variant.createObject(Attributes attributes) Create or retrieve aFormSetfor the specified attributes.private org.apache.commons.logging.LoggetLog()Accessor method for Log instance.Methods inherited from class org.apache.commons.digester.AbstractObjectCreationFactory
getDigester, setDigester
-
Field Details
-
log
private transient org.apache.commons.logging.Log logLogging
-
-
Constructor Details
-
FormSetFactory
public FormSetFactory()
-
-
Method Details
-
createObject
Create or retrieve a
FormSetfor the specified attributes.- Specified by:
createObjectin interfaceorg.apache.commons.digester.ObjectCreationFactory- Specified by:
createObjectin classorg.apache.commons.digester.AbstractObjectCreationFactory- Parameters:
attributes- The sax attributes for the formset element.- Returns:
- The FormSet for a locale.
- Throws:
Exception- If an error occurs creating the FormSet.
-
createFormSet
private FormSet createFormSet(ValidatorResources resources, String language, String country, String variant) throws Exception Create or retrieve a
FormSetbased 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:
Exception- Since:
- Validator 1.2
-
getLog
private org.apache.commons.logging.Log getLog()Accessor method for Log instance. The Log instance variable is transient and accessing it through this method ensures it is re-initialized when this instance is de-serialized.- Returns:
- The Log instance.
-