| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectorg.apache.commons.validator.FormSetpublic class FormSetextends java.lang.Objectimplements java.io.SerializableForms 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 java.util.Map |
|
private java.lang.String |
|
private java.util.Map |
|
private java.lang.String |
|
private boolean |
|
private java.lang.String |
|
Method Summary | |
void |
|
void |
|
void |
|
void | |
java.lang.String |
|
Form |
|
Form |
|
java.util.Map |
|
java.lang.String |
|
java.lang.String |
|
boolean |
|
void |
|
void |
|
void |
|
void |
|
java.lang.String |
|
private java.util.Map constants
AMapofConstants using the name field of theConstantas the key.
private java.lang.String country
Country component ofLocale(optional).
private java.util.Map forms
AMapofForms using the name field of theFormas the key.
private java.lang.String language
Language component ofLocale(required).
private boolean processed
Whether or not the thisFormSetwas processed for replacing variables in strings with their values.
private java.lang.String variant
Variant component ofLocale(optional).
public void addConstant(java.lang.String name,
java.lang.String value)Add aConstantto the locale level.
public void addConstant(Constant c)
Deprecated. Use addConstant(String, String) instead.
Add aConstant(locale level).
public void addConstantParam(java.lang.String name,
java.lang.String value)Deprecated. Use addConstant(String, String) instead.
Add aConstantto the locale level.
public java.lang.String getCountry()
Gets the equivalent of the country component ofLocale.
public Form getForm(java.lang.Object key)
Deprecated. Use getForm(String) instead.
Retrieve aFormbased on the form name.
public java.util.Map getForms()
AMapofForms is returned as an unmodifiableMapwith the key based on the form name.
public java.lang.String getLanguage()
Gets the equivalent of the language component ofLocale.
public java.lang.String getVariant()
Gets the equivalent of the variant component ofLocale.
public boolean isProcessed()
Whether or not the thisFormSetwas processed for replacing variables in strings with their values.
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 theForms.
public void setCountry(java.lang.String country)
Sets the equivalent of the country component ofLocale.
public void setLanguage(java.lang.String language)
Sets the equivalent of the language component ofLocale.
public void setVariant(java.lang.String variant)
Sets the equivalent of the variant component ofLocale.
public java.lang.String toString()
Returns a string representation of the object.