KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jac > samples > contacts > Company


1
2 package org.objectweb.jac.samples.contacts;
3
4 import java.net.URL JavaDoc;
5
6 public class Company {
7
8    public Company(String JavaDoc name,String JavaDoc address,
9                   String JavaDoc phone,String JavaDoc fax,URL JavaDoc webSiteURL) {
10       this.name = name;
11       this.address = address;
12       this.phone = phone;
13       this.fax = fax;
14       this.webSiteURL = webSiteURL;
15    }
16
17    public String JavaDoc toString() {
18       return name;
19    }
20
21    String JavaDoc name;
22    
23    /**
24     * Get the value of name.
25     * @return value of name.
26     */

27    public String JavaDoc getName() {
28       return name;
29    }
30    
31    /**
32     * Set the value of name.
33     * @param v Value to assign to name.
34     */

35    public void setName(String JavaDoc v) {
36       this.name = v;
37    }
38    
39    String JavaDoc address;
40    
41    /**
42     * Get the value of address.
43     * @return value of address.
44     */

45    public String JavaDoc getAddress() {
46       return address;
47    }
48
49    /**
50     * Set the value of address.
51     * @param v Value to assign to address.
52     */

53    public void setAddress(String JavaDoc v) {
54       this.address = v;
55    }
56    
57
58    String JavaDoc phone;
59    
60    /**
61     * Get the value of phone.
62     * @return value of phone.
63     */

64    public String JavaDoc getPhone() {
65       return phone;
66    }
67    
68    /**
69     * Set the value of phone.
70     * @param v Value to assign to phone.
71     */

72    public void setPhone(String JavaDoc v) {
73       this.phone = v;
74    }
75    
76
77    URL JavaDoc webSiteURL;
78    
79    /**
80     * Get the value of webSiteURL.
81     * @return value of webSiteURL.
82     */

83    public URL JavaDoc getWebSiteURL() {
84       return webSiteURL;
85    }
86    
87    /**
88     * Set the value of webSiteURL.
89     * @param v Value to assign to webSiteURL.
90     */

91    public void setWebSiteURL(URL JavaDoc v) {
92       this.webSiteURL = v;
93    }
94    
95
96    String JavaDoc notes;
97    
98    /**
99     * Get the value of notes.
100     * @return value of notes.
101     */

102    public String JavaDoc getNotes() {
103       return notes;
104    }
105    
106    /**
107     * Set the value of notes.
108     * @param v Value to assign to notes.
109     */

110    public void setNotes(String JavaDoc v) {
111       this.notes = v;
112    }
113
114    String JavaDoc fax;
115    
116    /**
117     * Get the value of fax.
118     * @return value of fax.
119     */

120    public String JavaDoc getFax() {
121       return fax;
122    }
123    
124    /**
125     * Set the value of fax.
126     * @param v Value to assign to fax.
127     */

128    public void setFax(String JavaDoc v) {
129       this.fax = v;
130    }
131    
132    
133 }
134     
135
Popular Tags