org.apache.commons.validator

Class FormSetFactory

public class FormSetFactory extends AbstractObjectCreationFactory

Factory class used by Digester to create FormSet's.

Since: Validator 1.2

Version: $Revision: 478334 $ $Date: 2006-11-22 21:31:54 +0000 (Wed, 22 Nov 2006) $

Field Summary
Loglog
Logging
Method Summary
FormSetcreateFormSet(ValidatorResources resources, String language, String country, String variant)

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

ObjectcreateObject(Attributes attributes)

Create or retrieve a FormSet for the specified attributes.

LoggetLog()
Accessor method for Log instance.

Field Detail

log

private transient Log log
Logging

Method Detail

createFormSet

private FormSet createFormSet(ValidatorResources resources, String language, String country, String variant)

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.

Since: Validator 1.2

createObject

public Object createObject(Attributes attributes)

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: Exception If an error occurs creating the FormSet.

getLog

private 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.

Copyright (c) 2001-2004 Apache Software Foundation