Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.apache.commons.validator.FormSet
public class FormSet
extends java.lang.Object
implements Serializable
Form
s stored associated with a
Locale
based on the country, language, and variant specified.
Instances of this class are configured with a <formset> xml element.
Field Summary | |
private Map |
|
private String |
|
private Map |
|
private String |
|
private boolean |
|
private String |
|
Method Summary | |
void |
|
void |
|
void |
|
void | |
String |
|
Form |
|
Form |
|
Map |
|
String |
|
String |
|
boolean |
|
void |
|
void |
|
void |
|
void |
|
String |
|
private Map constants
AMap
ofConstant
s using the name field of theConstant
as the key.
private String country
Country component ofLocale
(optional).
private Map forms
AMap
ofForm
s using the name field of theForm
as the key.
private String language
Language component ofLocale
(required).
private boolean processed
Whether or not the thisFormSet
was processed for replacing variables in strings with their values.
private String variant
Variant component ofLocale
(optional).
public void addConstant(String name, String value)
Add aConstant
to the locale level.
public void addConstant(Constant c)
Deprecated. Use addConstant(String, String) instead.
Add aConstant
(locale level).
public void addConstantParam(String name, String value)
Deprecated. Use addConstant(String, String) instead.
Add aConstant
to the locale level.
public String getCountry()
Gets the equivalent of the country component ofLocale
.
public Form getForm(Object key)
Deprecated. Use getForm(String) instead.
Retrieve aForm
based on the form name.
public Map getForms()
AMap
ofForm
s is returned as an unmodifiableMap
with the key based on the form name.
public String getLanguage()
Gets the equivalent of the language component ofLocale
.
public String getVariant()
Gets the equivalent of the variant component ofLocale
.
public boolean isProcessed()
Whether or not the thisFormSet
was processed for replacing variables in strings with their values.
public void process(Map globalConstants)
Deprecated. This method is called by the framework. It will be made protected in a future release. TODO
Processes all of theForm
s.
public void setCountry(String country)
Sets the equivalent of the country component ofLocale
.
public void setLanguage(String language)
Sets the equivalent of the language component ofLocale
.
public void setVariant(String variant)
Sets the equivalent of the variant component ofLocale
.
public String toString()
Returns a string representation of the object.