public class FormSet
extends java.lang.Object
implements java.io.Serializable
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.| Modifier and Type | Field and Description |
|---|---|
private java.util.Map |
constants
A
Map of Constants
using the name field of the Constant as the key. |
private java.lang.String |
country
Country component of
Locale (optional). |
private java.util.Map |
forms
A
Map of Forms
using the name field of the Form as the key. |
private java.lang.String |
language
Language component of
Locale (required). |
private boolean |
processed
Whether or not the this
FormSet was processed
for replacing variables in strings with their values. |
private java.lang.String |
variant
Variant component of
Locale (optional). |
| Constructor and Description |
|---|
FormSet() |
| Modifier and Type | Method and Description |
|---|---|
void |
addConstant(Constant c)
Deprecated.
Use addConstant(String, String) instead.
|
void |
addConstant(java.lang.String name,
java.lang.String value)
Add a
Constant to the locale level. |
void |
addConstantParam(java.lang.String name,
java.lang.String value)
Deprecated.
Use addConstant(String, String) instead.
|
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)
Deprecated.
Use getForm(String) instead.
|
Form |
getForm(java.lang.String formName)
Retrieve a
Form based on the form name. |
java.util.Map |
getForms()
A
Map of Forms 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)
Deprecated.
This method is called by the framework. It will be made protected
in a future release. TODO
|
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.
|
private boolean processed
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 java.util.Map forms
Map of Forms
using the name field of the Form as the key.private java.util.Map constants
Map of Constants
using the name field of the Constant as the key.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 addConstant(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 Form getForm(java.lang.String formName)
Form based on the form name.public java.util.Map getForms()
Map of Forms is returned as an
unmodifiable Map with the key based on the form name.public void process(java.util.Map globalConstants)
Forms.public java.lang.String toString()
toString in class java.lang.ObjectCopyright (c) 2001-2004 Apache Software Foundation