org.apache.commons.validator
Class FormSet

java.lang.Object
  extended byorg.apache.commons.validator.FormSet
All Implemented Interfaces:
java.io.Serializable

public class FormSet
extends java.lang.Object
implements java.io.Serializable

Holds a set of Forms stored associated with a Locale based on the country, language, and variant specified. Instances of this class are configured with a <formset> xml element.

See Also:
Serialized Form

Constructor Summary
FormSet()
           
 
Method Summary
 void addConstant(Constant c)
          Deprecated. Use addConstant(String, String) instead.
 void addConstant(java.lang.String name, java.lang.String value)
          Add a Constant to the locale level.
 void addConstantParam(java.lang.String name, java.lang.String value)
          Deprecated. Use addConstant(String, String) instead.
 void addForm(Form f)
          Add a Form to the FormSet.
 java.lang.String getCountry()
          Gets the equivalent of the country component of Locale.
 Form getForm(java.lang.Object key)
          Deprecated. Use getForm(String) instead.
 Form getForm(java.lang.String formName)
          Retrieve a Form based on the form name.
 java.util.Map getForms()
          A Map of Forms is returned as an unmodifiable Map with the key based on the form name.
 java.lang.String getLanguage()
          Gets the equivalent of the language component of Locale.
 java.lang.String getVariant()
          Gets the equivalent of the variant component of Locale.
 boolean isProcessed()
          Whether or not the this FormSet was processed for replacing variables in strings with their values.
 void process(java.util.Map globalConstants)
          Deprecated. This method is called by the framework. It will be made protected in a future release. TODO
 void setCountry(java.lang.String country)
          Sets the equivalent of the country component of Locale.
 void setLanguage(java.lang.String language)
          Sets the equivalent of the language component of Locale.
 void setVariant(java.lang.String variant)
          Sets the equivalent of the variant component of Locale.
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FormSet

public FormSet()
Method Detail

isProcessed

public boolean isProcessed()
Whether or not the this FormSet was processed for replacing variables in strings with their values.


getLanguage

public java.lang.String getLanguage()
Gets the equivalent of the language component of Locale.


setLanguage

public void setLanguage(java.lang.String language)
Sets the equivalent of the language component of Locale.


getCountry

public java.lang.String getCountry()
Gets the equivalent of the country component of Locale.


setCountry

public void setCountry(java.lang.String country)
Sets the equivalent of the country component of Locale.


getVariant

public java.lang.String getVariant()
Gets the equivalent of the variant component of Locale.


setVariant

public void setVariant(java.lang.String variant)
Sets the equivalent of the variant component of Locale.


addConstant

public void addConstant(Constant c)
Deprecated. Use addConstant(String, String) instead.

Add a Constant (locale level).


addConstantParam

public void addConstantParam(java.lang.String name,
                             java.lang.String value)
Deprecated. Use addConstant(String, String) instead.

Add a Constant to the locale level.


addConstant

public void addConstant(java.lang.String name,
                        java.lang.String value)
Add a Constant to the locale level.


addForm

public void addForm(Form f)
Add a Form to the FormSet.


getForm

public Form getForm(java.lang.Object key)
Deprecated. Use getForm(String) instead.

Retrieve a Form based on the form name.


getForm

public Form getForm(java.lang.String formName)
Retrieve a Form based on the form name.


getForms

public java.util.Map getForms()
A Map of Forms is returned as an unmodifiable Map with the key based on the form name.


process

public void process(java.util.Map globalConstants)
Deprecated. This method is called by the framework. It will be made protected in a future release. TODO

Processes all of the Forms.


toString

public java.lang.String toString()
Returns a string representation of the object.



Copyright © 2002-2004 The Apache Software Foundation. All Rights Reserved.