|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.commons.validator.FormSet
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.
| Constructor Summary | |
FormSet()
|
|
| Method Summary | |
void |
addConstant(Constant c)
Deprecated. Use addConstant(String, String) instead. |
void |
addConstant(String name,
String value)
Add a Constant to the locale level. |
void |
addConstantParam(String name,
String value)
Deprecated. Use addConstant(String, String) instead. |
void |
addForm(Form f)
Add a Form to the FormSet. |
String |
getCountry()
Gets the equivalent of the country component of Locale. |
Form |
getForm(Object key)
Deprecated. Use getForm(String) instead. |
Form |
getForm(String formName)
Retrieve a Form based on the form name. |
Map |
getForms()
A Map of Forms is returned as an
unmodifiable Map with the key based on the form name. |
String |
getLanguage()
Gets the equivalent of the language component of Locale. |
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(Map globalConstants)
Deprecated. This method is called by the framework. It will be made protected in a future release. TODO |
void |
setCountry(String country)
Sets the equivalent of the country component of Locale. |
void |
setLanguage(String language)
Sets the equivalent of the language component of Locale. |
void |
setVariant(String variant)
Sets the equivalent of the variant component of Locale. |
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 |
public FormSet()
| Method Detail |
public boolean isProcessed()
FormSet was processed
for replacing variables in strings with their values.
public String getLanguage()
Locale.
public void setLanguage(String language)
Locale.
public String getCountry()
Locale.
public void setCountry(String country)
Locale.
public String getVariant()
Locale.
public void setVariant(String variant)
Locale.
public void addConstant(Constant c)
Constant (locale level).
public void addConstantParam(String name,
String value)
Constant to the locale level.
public void addConstant(String name,
String value)
Constant to the locale level.
public void addForm(Form f)
Form to the FormSet.
public Form getForm(Object key)
Form based on the form name.
public Form getForm(String formName)
Form based on the form name.
public Map getForms()
Map of Forms is returned as an
unmodifiable Map with the key based on the form name.
public void process(Map globalConstants)
Forms.
public String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||