View Javadoc

1   /* Copyright 2004 Acegi Technology Pty Limited
2    *
3    * Licensed under the Apache License, Version 2.0 (the "License");
4    * you may not use this file except in compliance with the License.
5    * You may obtain a copy of the License at
6    *
7    *     http://www.apache.org/licenses/LICENSE-2.0
8    *
9    * Unless required by applicable law or agreed to in writing, software
10   * distributed under the License is distributed on an "AS IS" BASIS,
11   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12   * See the License for the specific language governing permissions and
13   * limitations under the License.
14   */
15  
16  package sample.contact;
17  
18  /***
19   * An object that represents user-editable sections of a {@link Contact}.
20   *
21   * @author Ben Alex
22   * @version $Id: WebContact.java,v 1.2 2004/03/23 04:44:44 benalex Exp $
23   */
24  public class WebContact {
25      //~ Instance fields ========================================================
26  
27      private String email;
28      private String name;
29  
30      //~ Methods ================================================================
31  
32      public void setEmail(String email) {
33          this.email = email;
34      }
35  
36      public String getEmail() {
37          return email;
38      }
39  
40      public void setName(String name) {
41          this.name = name;
42      }
43  
44      public String getName() {
45          return name;
46      }
47  }