You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by st...@apache.org on 2003/05/12 15:23:58 UTC
cvs commit: cocoon-2.1/src/blocks/xmlform/java/org/apache/cocoon/components/validation Violation.java
stephan 2003/05/12 06:23:58
Modified: src/blocks/xmlform/java/org/apache/cocoon/components/validation
Violation.java
Log:
Add constructor.
Revision Changes Path
1.3 +12 -5 cocoon-2.1/src/blocks/xmlform/java/org/apache/cocoon/components/validation/Violation.java
Index: Violation.java
===================================================================
RCS file: /home/cvs/cocoon-2.1/src/blocks/xmlform/java/org/apache/cocoon/components/validation/Violation.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- Violation.java 26 Apr 2003 12:10:43 -0000 1.2
+++ Violation.java 12 May 2003 13:23:58 -0000 1.3
@@ -60,6 +60,17 @@
*/
public class Violation implements Comparable {
+ private String xpath_;
+ private String message_;
+
+ public Violation() {
+ }
+
+ public Violation(String xpath, String message) {
+ setPath(xpath);
+ setMessage(message);
+ }
+
/**
* @return the XPath location of the Violation
*/
@@ -143,8 +154,4 @@
}
}
}
-
- private String xpath_;
- private String message_;
-
}