[Jvalid-checkins] CVS: jvalid/src/net/sourceforge/jvalid DataValidationException.java,1.1,1.2
Status: Alpha
Brought to you by:
mikewill_1998
|
From: Mike W. <mik...@us...> - 2001-03-29 02:35:28
|
Update of /cvsroot/jvalid/jvalid/src/net/sourceforge/jvalid
In directory usw-pr-cvs1:/tmp/cvs-serv11405
Modified Files:
DataValidationException.java
Log Message:
Added 2 new methods:
getErrorList() returns a List containing any validation errors.
getErrors() returns an Iterator for navigating through the list.
Index: DataValidationException.java
===================================================================
RCS file: /cvsroot/jvalid/jvalid/src/net/sourceforge/jvalid/DataValidationException.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** DataValidationException.java 2001/03/27 10:48:22 1.1
--- DataValidationException.java 2001/03/29 02:35:24 1.2
***************
*** 45,48 ****
--- 45,53 ----
* $Header$
* $Log$
+ * Revision 1.2 2001/03/29 02:35:24 mikewill_1998
+ * Added 2 new methods:
+ * getErrorList() returns a List containing any validation errors.
+ * getErrors() returns an Iterator for navigating through the list.
+ *
* Revision 1.1 2001/03/27 10:48:22 mikewill_1998
* New exception that is thrown by the getObject() method in the Validator
***************
*** 142,145 ****
--- 147,170 ----
return sb.toString();
+ }
+
+ /**
+ * Returns the error list.
+ *
+ * @return <code>List</code> containing any validation errors.
+ */
+ public List getErrorList()
+ {
+ return mErrorList;
+ }
+
+ /**
+ * Returns an iterator for moving through the List of validation errors.
+ *
+ * @return <code>Iterator</code> for moving through the <code>List</code> of validation errors.
+ */
+ public Iterator getErrors()
+ {
+ return mErrorList.iterator();
}
}
|