| 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 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 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
AMapofConstants using the name field of theConstantas the key.
private String country
Country component ofLocale(optional).
private Map forms
AMapofForms using the name field of theFormas the key.
private String language
Language component ofLocale(required).
private boolean processed
Whether or not the thisFormSetwas processed for replacing variables in strings with their values.
private String variant
Variant component ofLocale(optional).
public void addConstant(String name,
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(String name,
String value)Deprecated. Use addConstant(String, String) instead.
Add aConstantto 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 aFormbased on the form name.
public Map getForms()
AMapofForms is returned as an unmodifiableMapwith 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 thisFormSetwas 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 theForms.
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.