You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by dg...@apache.org on 2003/05/29 05:02:01 UTC
cvs commit: jakarta-commons/validator/src/share/org/apache/commons/validator FormSet.java
dgraham 2003/05/28 20:02:01
Modified: validator/src/share/org/apache/commons/validator
FormSet.java
Log:
Deprecated process() and deprecated getForm(Object) in favor of
getForm(String).
Revision Changes Path
1.10 +15 -5 jakarta-commons/validator/src/share/org/apache/commons/validator/FormSet.java
Index: FormSet.java
===================================================================
RCS file: /home/cvs/jakarta-commons/validator/src/share/org/apache/commons/validator/FormSet.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- FormSet.java 28 May 2003 04:14:32 -0000 1.9
+++ FormSet.java 29 May 2003 03:02:01 -0000 1.10
@@ -205,9 +205,17 @@
/**
* Retrieve a <code>Form</code> based on the form name.
+ * @deprecated Use getForm(String) instead.
*/
public Form getForm(Object key) {
- return (Form) forms.get(key);
+ return (Form) this.forms.get(key);
+ }
+
+ /**
+ * Retrieve a <code>Form</code> based on the form name.
+ */
+ public Form getForm(String formName) {
+ return (Form) this.forms.get(formName);
}
/**
@@ -221,6 +229,8 @@
/**
* Processes all of the <code>Form</code>s, set <code>FastHashMap</code>s
* to 'fast' mode.
+ * @deprecated This method is called by the framework. It will be made protected
+ * in a future release. TODO
*/
public synchronized void process(Map globalConstants) {
for (Iterator i = forms.values().iterator(); i.hasNext();) {
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org