KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > interfaces > PersonFullForm


1 package test.interfaces;
2
3 /**
4  * Generated by XDoclet/ejbdoclet/strutsform. This class can be further processed with XDoclet/webdoclet/strutsconfigxml and XDoclet/webdoclet/strutsvalidationxml.
5  *
6  * @struts.form name="person.Full"
7  */

8 public class PersonFullForm
9     extends org.apache.struts.action.ActionForm
10     implements java.io.Serializable JavaDoc
11 {
12     protected java.lang.String JavaDoc id;
13     protected java.lang.String JavaDoc name;
14     protected java.lang.String JavaDoc firstName;
15     protected java.lang.String JavaDoc phone;
16     protected java.lang.String JavaDoc fax;
17     protected java.lang.Integer JavaDoc nonPersistentFormField;
18     protected java.lang.String JavaDoc computedField;
19     protected java.util.Date JavaDoc creationDate;
20     protected javax.ejb.EntityContext JavaDoc entityContext;
21
22     /** Default empty constructor. */
23     public PersonFullForm() {}
24
25     /** Constructor that takes the data object as argument. */
26     public PersonFullForm(test.interfaces.PersonData dataHolder)
27     {
28        this.setId(dataHolder.getId());
29        this.setName(dataHolder.getName());
30        this.setFirstName(dataHolder.getFirstName());
31        this.setPhone(dataHolder.getPhone());
32        this.setFax(dataHolder.getFax());
33        this.setCreationDate(dataHolder.getCreationDate());
34     }
35
36     public java.lang.String JavaDoc getId()
37     {
38         return this.id;
39     }
40
41    /**
42     */

43     public void setId( java.lang.String JavaDoc id )
44     {
45         this.id = id;
46     }
47
48     public java.lang.String JavaDoc getName()
49     {
50         return this.name;
51     }
52
53    /**
54     * @struts.validator type="required"
55     */

56     public void setName( java.lang.String JavaDoc name )
57     {
58         this.name = name;
59     }
60
61     public java.lang.String JavaDoc getFirstName()
62     {
63         return this.firstName;
64     }
65
66    /**
67     */

68     public void setFirstName( java.lang.String JavaDoc firstName )
69     {
70         this.firstName = firstName;
71     }
72
73     public java.lang.String JavaDoc getPhone()
74     {
75         return this.phone;
76     }
77
78    /**
79     */

80     public void setPhone( java.lang.String JavaDoc phone )
81     {
82         this.phone = phone;
83     }
84
85     public java.lang.String JavaDoc getFax()
86     {
87         return this.fax;
88     }
89
90    /**
91     */

92     public void setFax( java.lang.String JavaDoc fax )
93     {
94         this.fax = fax;
95     }
96
97     public java.lang.Integer JavaDoc getNonPersistentFormField()
98     {
99         return this.nonPersistentFormField;
100     }
101
102    /**
103     */

104     public void setNonPersistentFormField( java.lang.Integer JavaDoc nonPersistentFormField )
105     {
106         this.nonPersistentFormField = nonPersistentFormField;
107     }
108
109     public java.lang.String JavaDoc getComputedField()
110     {
111         return this.computedField;
112     }
113
114    /**
115     */

116     public void setComputedField( java.lang.String JavaDoc computedField )
117     {
118         this.computedField = computedField;
119     }
120
121     public java.util.Date JavaDoc getCreationDate()
122     {
123         return this.creationDate;
124     }
125
126    /**
127     */

128     public void setCreationDate( java.util.Date JavaDoc creationDate )
129     {
130         this.creationDate = creationDate;
131     }
132
133     public javax.ejb.EntityContext JavaDoc getEntityContext()
134     {
135         return this.entityContext;
136     }
137
138    /**
139     */

140     public void setEntityContext( javax.ejb.EntityContext JavaDoc entityContext )
141     {
142         this.entityContext = entityContext;
143     }
144
145     public test.interfaces.PersonData getData(test.interfaces.PersonData dataHolder)
146     {
147        test.interfaces.PersonData retData = new test.interfaces.PersonData(dataHolder);
148
149         retData.setId(this.getId());
150         retData.setName(this.getName());
151         retData.setFirstName(this.getFirstName());
152         retData.setPhone(this.getPhone());
153         retData.setFax(this.getFax());
154         retData.setCreationDate(this.getCreationDate());
155
156         return retData;
157     }
158
159     public test.interfaces.PersonData getData()
160     {
161        test.interfaces.PersonData retData = new test.interfaces.PersonData();
162
163         retData.setId(this.getId());
164         retData.setName(this.getName());
165         retData.setFirstName(this.getFirstName());
166         retData.setPhone(this.getPhone());
167         retData.setFax(this.getFax());
168         retData.setCreationDate(this.getCreationDate());
169
170         return retData;
171     }
172
173     public void setData(test.interfaces.PersonData dataHolder)
174     {
175         this.setId (dataHolder.getId());
176         this.setName (dataHolder.getName());
177         this.setFirstName (dataHolder.getFirstName());
178         this.setPhone (dataHolder.getPhone());
179         this.setFax (dataHolder.getFax());
180         this.setCreationDate (dataHolder.getCreationDate());
181     }
182
183 }
184
Popular Tags