|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.commons.validator.FormSet
Holds a set of Form
s
stored associated with a Locale
based
on the country, language, and variant specified.
Field Summary | |
---|---|
private boolean |
bProcessed
Whether or not the this FormSet was processed
for replacing variables in strings with their values. |
private java.lang.String |
country
Country component of Locale (optional). |
private org.apache.commons.collections.FastHashMap |
hConstants
A FastHashMap of Constant s
using the name field of the Constant as the key. |
private org.apache.commons.collections.FastHashMap |
hForms
A FastHashMap of Form s
using the name field of the Form as the key. |
private java.lang.String |
language
Language component of Locale (required). |
private java.lang.String |
variant
Variant component of Locale (optional). |
Constructor Summary | |
---|---|
FormSet()
|
Method Summary | |
---|---|
void |
addConstant(Constant c)
Add a Constant (locale level). |
void |
addConstantParam(java.lang.String name,
java.lang.String value)
Add a Constant to the locale level. |
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)
Retrieve a Form based on the form name. |
java.util.Map |
getForms()
A Map of Form s 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)
Processes all of the Form s, set FastHashMap s
to 'fast' mode. |
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 |
Field Detail |
private boolean bProcessed
FormSet
was processed
for replacing variables in strings with their values.
private java.lang.String language
Locale
(required).
private java.lang.String country
Locale
(optional).
private java.lang.String variant
Locale
(optional).
private org.apache.commons.collections.FastHashMap hForms
FastHashMap
of Form
s
using the name field of the Form
as the key.
private org.apache.commons.collections.FastHashMap hConstants
FastHashMap
of Constant
s
using the name field of the Constant
as the key.
Constructor Detail |
public FormSet()
Method Detail |
public boolean isProcessed()
FormSet
was processed
for replacing variables in strings with their values.
public java.lang.String getLanguage()
Locale
.
public void setLanguage(java.lang.String language)
Locale
.
public java.lang.String getCountry()
Locale
.
public void setCountry(java.lang.String country)
Locale
.
public java.lang.String getVariant()
Locale
.
public void setVariant(java.lang.String variant)
Locale
.
public void addConstant(Constant c)
Constant
(locale level).
public void addConstantParam(java.lang.String name, java.lang.String value)
Constant
to the locale level.
public void addForm(Form f)
Form
to the FormSet
.
public Form getForm(java.lang.Object key)
Form
based on the form name.
public java.util.Map getForms()
Map
of Form
s is returned as an
unmodifiable Map
with the key based on the form name.
public void process(java.util.Map globalConstants)
Form
s, set FastHashMap
s
to 'fast' mode.
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |