cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anto...@apache.org
Subject svn commit: r414761 - /cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/java/org/apache/cocoon/forms/samples/Contact.java
Date Fri, 16 Jun 2006 07:06:10 GMT
Author: antonio
Date: Fri Jun 16 00:06:09 2006
New Revision: 414761

URL: http://svn.apache.org/viewvc?rev=414761&view=rev
Log:
Add missing middleInitial property. It's needed for samples/blocks/forms/form2bean.flow.

Modified:
    cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/java/org/apache/cocoon/forms/samples/Contact.java

Modified: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/java/org/apache/cocoon/forms/samples/Contact.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/java/org/apache/cocoon/forms/samples/Contact.java?rev=414761&r1=414760&r2=414761&view=diff
==============================================================================
--- cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/java/org/apache/cocoon/forms/samples/Contact.java
(original)
+++ cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/java/org/apache/cocoon/forms/samples/Contact.java
Fri Jun 16 00:06:09 2006
@@ -23,6 +23,7 @@
 public class Contact {
     private long id;
     private String firstName;
+    private String middleInitial;
     private String lastName;
     private String phone;
     private String email;
@@ -69,7 +70,8 @@
     }
 
     public String toString() {
-        return "< id = " + id + ", firstName = " + firstName + ", lastName = " + lastName
+ ", phone = " + phone + ", email = " + email + " >";
+        return "< id = " + id + ", firstName = " + firstName + ", middleInitial = " +
middleInitial
+            + ", lastName = " + lastName + ", phone = " + phone + ", email = " + email +
" >";
     }
 
     public PreferredContact getPreferred() {
@@ -78,5 +80,13 @@
 
     public void setPreferred(PreferredContact preferred) {
         this.preferred = preferred;
+    }
+
+    public String getMiddleInitial() {
+        return middleInitial;
+    }
+
+    public void setMiddleInitial(String middleInitial) {
+        this.middleInitial = middleInitial;
     }
 }



Mime
View raw message