Author: hardy.ferentschik
Date: 2009-06-19 07:44:15 -0400 (Fri, 19 Jun 2009)
New Revision: 16841
Modified:
validator/trunk/hibernate-validator/src/main/java/org/hibernate/validation/util/PropertyPath.java
Log:
added toString methods
Modified:
validator/trunk/hibernate-validator/src/main/java/org/hibernate/validation/util/PropertyPath.java
===================================================================
---
validator/trunk/hibernate-validator/src/main/java/org/hibernate/validation/util/PropertyPath.java 2009-06-19
11:38:29 UTC (rev 16840)
+++
validator/trunk/hibernate-validator/src/main/java/org/hibernate/validation/util/PropertyPath.java 2009-06-19
11:44:15 UTC (rev 16841)
@@ -85,6 +85,14 @@
return pathList.iterator();
}
+ @Override
+ public String toString() {
+ return "PropertyPath{" +
+ "originalProperty='" + originalProperty + '\'' +
+ ", pathList=" + pathList +
+ '}';
+ }
+
public static class PathElement {
private final String value;
private final String index;
@@ -105,5 +113,13 @@
public boolean isIndexed() {
return index != null;
}
+
+ @Override
+ public String toString() {
+ return "PathElement{" +
+ "value='" + value + '\'' +
+ ", index='" + index + '\'' +
+ '}';
+ }
}
}
\ No newline at end of file
Show replies by date