File Source: ProfileBean.java
/*
P/P * Method: org.apache.roller.weblogger.ui.struts2.core.ProfileBean__static_init
*/
1 /*
2 * Licensed to the Apache Software Foundation (ASF) under one or more
3 * contributor license agreements. The ASF licenses this file to You
4 * under the Apache License, Version 2.0 (the "License"); you may not
5 * use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License. For additional information regarding
15 * copyright in this work, please see the NOTICE file in the top level
16 * directory of this distribution.
17 */
18
19 package org.apache.roller.weblogger.ui.struts2.core;
20
21 import org.apache.roller.weblogger.pojos.User;
22
23
24 /**
25 * A simple bean for managing the form data used by the RegisterForm.
26 */
/*
P/P * Method: void org.apache.roller.weblogger.ui.struts2.core.ProfileBean()
*
* Postconditions:
* this.emailAddress == null
* this.fullName == null
* this.id == null
* this.locale == null
* this.password == null
* this.passwordConfirm == null
* this.passwordText == null
* this.screenName == null
* this.timeZone == null
* this.userName == null
*/
27 public class ProfileBean {
28
29 private String id = null;
30 private String userName = null;
31 private String password = null;
32 private String screenName = null;
33 private String fullName = null;
34 private String emailAddress = null;
35 private String locale = null;
36 private String timeZone = null;
37
38 private String passwordText = null;
39 private String passwordConfirm = null;
40
41
42 public String getId() {
/*
P/P * Method: String getId()
*
* Preconditions:
* init'ed(this.id)
*
* Postconditions:
* return_value == this.id
* init'ed(return_value)
*/
43 return id;
44 }
45
46 public void setId(String id) {
/*
P/P * Method: void setId(String)
*
* Postconditions:
* this.id == id
* init'ed(this.id)
*/
47 this.id = id;
48 }
49
50 public String getUserName() {
/*
P/P * Method: String getUserName()
*
* Preconditions:
* init'ed(this.userName)
*
* Postconditions:
* return_value == this.userName
* init'ed(return_value)
*/
51 return userName;
52 }
53
54 public void setUserName(String userName) {
/*
P/P * Method: void setUserName(String)
*
* Postconditions:
* this.userName == userName
* init'ed(this.userName)
*/
55 this.userName = userName;
56 }
57
58 public String getPassword() {
/*
P/P * Method: String getPassword()
*
* Preconditions:
* init'ed(this.password)
*
* Postconditions:
* return_value == this.password
* init'ed(return_value)
*/
59 return password;
60 }
61
62 public void setPassword(String password) {
/*
P/P * Method: void setPassword(String)
*
* Postconditions:
* this.password == password
* init'ed(this.password)
*/
63 this.password = password;
64 }
65
66 public String getScreenName() {
/*
P/P * Method: String getScreenName()
*
* Preconditions:
* init'ed(this.screenName)
*
* Postconditions:
* return_value == this.screenName
* init'ed(return_value)
*/
67 return screenName;
68 }
69
70 public void setScreenName(String screenName) {
/*
P/P * Method: void setScreenName(String)
*
* Postconditions:
* this.screenName == screenName
* init'ed(this.screenName)
*/
71 this.screenName = screenName;
72 }
73
74 public String getFullName() {
/*
P/P * Method: String getFullName()
*
* Preconditions:
* init'ed(this.fullName)
*
* Postconditions:
* return_value == this.fullName
* init'ed(return_value)
*/
75 return fullName;
76 }
77
78 public void setFullName(String fullName) {
/*
P/P * Method: void setFullName(String)
*
* Postconditions:
* this.fullName == fullName
* init'ed(this.fullName)
*/
79 this.fullName = fullName;
80 }
81
82 public String getEmailAddress() {
/*
P/P * Method: String getEmailAddress()
*
* Preconditions:
* init'ed(this.emailAddress)
*
* Postconditions:
* return_value == this.emailAddress
* init'ed(return_value)
*/
83 return emailAddress;
84 }
85
86 public void setEmailAddress(String emailAddress) {
/*
P/P * Method: void setEmailAddress(String)
*
* Postconditions:
* this.emailAddress == emailAddress
* init'ed(this.emailAddress)
*/
87 this.emailAddress = emailAddress;
88 }
89
90 public String getLocale() {
/*
P/P * Method: String getLocale()
*
* Preconditions:
* init'ed(this.locale)
*
* Postconditions:
* return_value == this.locale
* init'ed(return_value)
*/
91 return locale;
92 }
93
94 public void setLocale(String locale) {
/*
P/P * Method: void setLocale(String)
*
* Postconditions:
* this.locale == locale
* init'ed(this.locale)
*/
95 this.locale = locale;
96 }
97
98 public String getTimeZone() {
/*
P/P * Method: String getTimeZone()
*
* Preconditions:
* init'ed(this.timeZone)
*
* Postconditions:
* return_value == this.timeZone
* init'ed(return_value)
*/
99 return timeZone;
100 }
101
102 public void setTimeZone(String timeZone) {
/*
P/P * Method: void setTimeZone(String)
*
* Postconditions:
* this.timeZone == timeZone
* init'ed(this.timeZone)
*/
103 this.timeZone = timeZone;
104 }
105
106 public String getPasswordText() {
/*
P/P * Method: String getPasswordText()
*
* Preconditions:
* init'ed(this.passwordText)
*
* Postconditions:
* return_value == this.passwordText
* init'ed(return_value)
*/
107 return passwordText;
108 }
109
110 public void setPasswordText(String passwordText) {
/*
P/P * Method: void setPasswordText(String)
*
* Postconditions:
* this.passwordText == passwordText
* init'ed(this.passwordText)
*/
111 this.passwordText = passwordText;
112 }
113
114 public String getPasswordConfirm() {
/*
P/P * Method: String getPasswordConfirm()
*
* Preconditions:
* init'ed(this.passwordConfirm)
*
* Postconditions:
* return_value == this.passwordConfirm
* init'ed(return_value)
*/
115 return passwordConfirm;
116 }
117
118 public void setPasswordConfirm(String passwordConfirm) {
/*
P/P * Method: void setPasswordConfirm(String)
*
* Postconditions:
* this.passwordConfirm == passwordConfirm
* init'ed(this.passwordConfirm)
*/
119 this.passwordConfirm = passwordConfirm;
120 }
121
122
123 public void copyTo(User dataHolder) {
124
/*
P/P * Method: void copyTo(User)
*
* Preconditions:
* dataHolder != null
* init'ed(this.emailAddress)
* init'ed(this.fullName)
* init'ed(this.locale)
* init'ed(this.screenName)
* init'ed(this.timeZone)
*/
125 dataHolder.setScreenName(this.screenName);
126 dataHolder.setFullName(this.fullName);
127 dataHolder.setEmailAddress(this.emailAddress);
128 dataHolder.setLocale(this.locale);
129 dataHolder.setTimeZone(this.timeZone);
130 }
131
132
133 public void copyFrom(User dataHolder) {
134
/*
P/P * Method: void copyFrom(User)
*
* Preconditions:
* dataHolder != null
*
* Postconditions:
* init'ed(this.emailAddress)
* init'ed(this.fullName)
* init'ed(this.id)
* init'ed(this.locale)
* init'ed(this.password)
* init'ed(this.screenName)
* init'ed(this.timeZone)
* init'ed(this.userName)
*/
135 this.id = dataHolder.getId();
136 this.userName = dataHolder.getUserName();
137 this.password = dataHolder.getPassword();
138 this.screenName = dataHolder.getScreenName();
139 this.fullName = dataHolder.getFullName();
140 this.emailAddress = dataHolder.getEmailAddress();
141 this.locale = dataHolder.getLocale();
142 this.timeZone = dataHolder.getTimeZone();
143 }
144
145 }
SofCheck Inspector Build Version : 2.18479
| ProfileBean.java |
2009-Jan-02 14:24:58 |
| ProfileBean.class |
2009-Sep-04 03:12:45 |