Source Code Cross Referenced for Entry.java in  » Portal » Open-Portal » com » sun » addressbook » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Portal » Open Portal » com.sun.addressbook 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /**
002:         * $Id: Entry.java,v 1.6 2003/03/28 19:32:18 dpolla Exp $
003:         * Copyright 2002 Sun Microsystems, Inc. All
004:         * rights reserved. Use of this product is subject
005:         * to license terms. Federal Acquisitions:
006:         * Commercial Software -- Government Users
007:         * Subject to Standard License Terms and
008:         * Conditions.
009:         *
010:         * Sun, Sun Microsystems, the Sun logo, and iPlanet
011:         * are trademarks or registered trademarks of Sun Microsystems,
012:         * Inc. in the United States and other countries.
013:         */package com.sun.addressbook;
014:
015:        import java.util.Map;
016:        import java.util.HashMap;
017:        import java.util.Properties;
018:
019:        /**
020:         * Entry - Entry bean corresponding to an entry in 
021:         * address book.
022:         * 
023:         * 
024:         */
025:
026:        public class Entry extends Element {
027:
028:            /* 
029:             * The fields of the Entry bean. 
030:             *
031:             */
032:
033:            /**
034:             * Last name.
035:             */
036:            protected String ln = null;
037:            /**
038:             * First name.
039:             */
040:            protected String fn = null;
041:
042:            /**
043:             * Honorific of the person.
044:             */
045:            protected String honorifics = null;
046:            /**
047:             * Title of the person.
048:             */
049:            protected String title = null;
050:
051:            /**
052:             * Home Street Address.
053:             */
054:            protected String homeStreet = null;
055:            /**
056:             * Home City.
057:             */
058:            protected String homeCity = null;
059:            /**
060:             * Home State.
061:             */
062:            protected String homeState = null;
063:            /**
064:             * Home Zip.
065:             */
066:            protected String homeZip = null;
067:            /**
068:             * Home Alternative way of storing address: Address1, Address2, region, 
069:             * Province, Country.
070:             */
071:            protected String homeAddress1 = null;
072:            /**
073:             * Home Address2 field.
074:             */
075:            protected String homeAddress2 = null;
076:            /**
077:             * Home Region part of the address.
078:             */
079:            protected String homeRegion = null;
080:            /**
081:             * Home Province part of the address.
082:             */
083:            protected String homeProvince = null;
084:            /**
085:             * Home Country.
086:             */
087:            protected String homeCountry = null;
088:
089:            /**
090:             * Business Street Address.
091:             */
092:            protected String businessStreet = null;
093:            /**
094:             * Business City.
095:             */
096:            protected String businessCity = null;
097:            /**
098:             * Business State.
099:             */
100:            protected String businessState = null;
101:            /**
102:             * Business Zip.
103:             */
104:            protected String businessZip = null;
105:            /**
106:             * Business Alternative way of storing address: Address1, Address2, region, 
107:             * Province, Country.
108:             */
109:            protected String businessAddress1 = null;
110:            /**
111:             * Business Address2 field.
112:             */
113:            protected String businessAddress2 = null;
114:            /**
115:             * Business Region part of the address.
116:             */
117:            protected String businessRegion = null;
118:            /**
119:             * Business Province part of the address.
120:             */
121:            protected String businessProvince = null;
122:            /**
123:             * Business Country.
124:             */
125:            protected String businessCountry = null;
126:
127:            /**
128:             * Business Phone.
129:             */
130:            protected String bp = null;
131:            /**
132:             * Fax Phone.
133:             */
134:            protected String fp = null;
135:            /**
136:             * Home Phone.
137:             */
138:            protected String hp = null;
139:            /**
140:             * Mobile Phone.
141:             */
142:            protected String mp = null;
143:            /**
144:             * Pager Phone.
145:             */
146:            protected String pp = null;
147:            /**
148:             * Date of Birth.
149:             */
150:            protected String dob = null;
151:            /**
152:             * Home page URL for the entry.
153:             */
154:            protected String uri = null;
155:            /**
156:             * Address Book this entry belongs to.
157:             */
158:            protected String memberofpab = null;
159:            /**
160:             * Group this entry belongs to.
161:             */
162:            protected String memberofpabgroup = null;
163:            /**
164:             * Email.
165:             */
166:            protected String em = null;
167:            /**
168:             * SMS id for the entry.
169:             */
170:            protected String smsId = null;
171:
172:            /*
173:             * Various flavours of constructors for the Entry bean.
174:             */
175:
176:            public Entry() {
177:                this .elementType = Element.ENTRY;
178:            }
179:
180:            public Entry(String un, String fn, String ln, String em, String bp,
181:                    String fp, String hp, String mp, String pp, String entryid) {
182:                this (un, fn, ln, null, em, null, bp, hp, mp, null, null, null,
183:                        null, null, null, null, null, null, null, fp, pp, null,
184:                        null, null, null, null, entryid);
185:            }
186:
187:            public Entry(String un, String fn, String ln, String em, String bp,
188:                    String fp, String hp, String mp, String pp,
189:                    String memberofpabgroup, String entryid) {
190:                this (un, fn, ln, null, em, null, bp, hp, mp, null, null, null,
191:                        null, null, null, null, null, null, null, fp, pp, null,
192:                        null, null, memberofpabgroup, null, entryid);
193:            }
194:
195:            public Entry(String un, String fn, String ln, String cn, String em,
196:                    String description, String bp, String hp, String mp,
197:                    String homeStreet, String homeCity, String homeState,
198:                    String homeZip, String homeCountry, String businessStreet,
199:                    String businessCity, String businessState,
200:                    String businessZip, String businessCountry, String fp,
201:                    String pp, String dob, String uri, String memberofpab,
202:                    String memberofpabgroup, String smsId, String entryid) {
203:                this .un = un;
204:                this .fn = fn;
205:                this .ln = ln;
206:                this .em = em;
207:                this .bp = bp;
208:                this .fp = fp;
209:                this .hp = hp;
210:                this .mp = mp;
211:                this .pp = pp;
212:                this .memberofpabgroup = memberofpabgroup;
213:                this .entryid = entryid;
214:                this .cn = cn;
215:                this .description = description;
216:                this .homeStreet = homeStreet;
217:                this .homeCity = homeCity;
218:                this .homeState = homeState;
219:                this .homeZip = homeZip;
220:                this .homeCountry = homeCountry;
221:                this .businessStreet = businessStreet;
222:                this .businessCity = businessCity;
223:                this .businessState = businessState;
224:                this .businessZip = businessZip;
225:                this .businessCountry = businessCountry;
226:                this .dob = dob;
227:                this .uri = uri;
228:                this .memberofpab = memberofpab;
229:                this .smsId = smsId;
230:                this .elementType = Element.ENTRY;
231:            }
232:
233:            public Entry(String un, String fn, String ln, String cn,
234:                    String honorifics, String title, String em,
235:                    String description, String bp, String hp, String mp,
236:                    String homeAddress1, String homeAddress2,
237:                    String homeRegion, String homeProvince, String homeCountry,
238:                    String businessAddress1, String businessAddress2,
239:                    String businessRegion, String businessProvince,
240:                    String businessCountry, String fp, String pp, String dob,
241:                    String uri, String memberofpab, String memberofpabgroup,
242:                    String smsId, String entryid) {
243:
244:                this (un, fn, ln, cn, em, description, bp, hp, mp, null, null,
245:                        null, null, homeCountry, null, null, null, null,
246:                        businessCountry, fp, pp, dob, uri, memberofpab,
247:                        memberofpabgroup, smsId, entryid);
248:                this .honorifics = honorifics;
249:                this .title = title;
250:                this .homeAddress1 = homeAddress1;
251:                this .homeAddress2 = homeAddress2;
252:                this .homeRegion = homeRegion;
253:                this .homeProvince = homeProvince;
254:                this .businessAddress1 = businessAddress1;
255:                this .businessAddress2 = businessAddress2;
256:                this .businessRegion = businessRegion;
257:                this .businessProvince = businessProvince;
258:                this .elementType = Element.ENTRY;
259:            }
260:
261:            /**
262:             * Get  date of birth. 
263:             * 
264:             * @return dob  String 
265:             */
266:            public String getDob() {
267:                return dob;
268:            }
269:
270:            /**
271:             * Get  email.
272:             * 
273:             * @return em  String 
274:             */
275:            public String getEm() {
276:                return em;
277:            }
278:
279:            /**
280:             * Get  fax phone.
281:             * 
282:             * @return fp  String 
283:             */
284:            public String getFp() {
285:                return fp;
286:            }
287:
288:            /**
289:             * Get  first name.
290:             * 
291:             * @return fn  String 
292:             */
293:            public String getFn() {
294:                return fn;
295:            }
296:
297:            /**
298:             * Get  home phone.
299:             * 
300:             * @return hp  String 
301:             */
302:            public String getHp() {
303:                return hp;
304:            }
305:
306:            /**
307:             * Get  last name.
308:             * 
309:             * @return ln  String 
310:             */
311:            public String getLn() {
312:                return ln;
313:            }
314:
315:            /** Get honorifics.
316:             *
317:             * @return honorifics   String
318:             */
319:            public String getHonorifics() {
320:                return honorifics;
321:            }
322:
323:            /** Get title.
324:             *
325:             * @return title   String
326:             */
327:            public String getTitle() {
328:                return title;
329:            }
330:
331:            /**
332:             * Get address book this entry belongs to.
333:             * 
334:             * @return memberofpab  String 
335:             */
336:            public String getMemberofpab() {
337:                return memberofpab;
338:            }
339:
340:            /**
341:             * Get group this entry belongs to.
342:             * 
343:             * @return memberofpabgroup  String 
344:             */
345:            public String getMemberofpabgroup() {
346:                return memberofpabgroup;
347:            }
348:
349:            /**
350:             * Get  mobile phone.
351:             * 
352:             * @return mp  String 
353:             */
354:            public String getMp() {
355:                return mp;
356:            }
357:
358:            /**
359:             * Get pager phone.
360:             * 
361:             * @return pp  String 
362:             */
363:            public String getPp() {
364:                return pp;
365:            }
366:
367:            /**
368:             * Get business phone.
369:             * 
370:             * @return bp  String 
371:             */
372:            public String getBp() {
373:                return bp;
374:            }
375:
376:            /**
377:             * Get  sms Id. 
378:             * 
379:             * @return smsId  String 
380:             */
381:            public String getSmsId() {
382:                return smsId;
383:            }
384:
385:            /**
386:             * Get  homeStreet. 
387:             * 
388:             * @return homeStreet  String 
389:             */
390:            public String getHomeStreet() {
391:                return homeStreet;
392:            }
393:
394:            /**
395:             * Get  homeCity.
396:             * 
397:             * @return homeCity  String 
398:             */
399:            public String getHomeCity() {
400:                return homeCity;
401:            }
402:
403:            /**
404:             * Get  homeState
405:             * 
406:             * @return homeState  String 
407:             */
408:            public String getHomeState() {
409:                return homeState;
410:            }
411:
412:            /**
413:             * Get  homeZip.
414:             * 
415:             * @return homeZip  String 
416:             */
417:            public String getHomeZip() {
418:                return homeZip;
419:            }
420:
421:            /**
422:             * Get  homeCountry.
423:             * 
424:             * @return homeCountry  String 
425:             */
426:            public String getHomeCountry() {
427:                return homeCountry;
428:            }
429:
430:            /** Get homeAddress1.
431:             *
432:             * @return homeAddress1   String
433:             */
434:            public String getHomeAddress1() {
435:                return homeAddress1;
436:            }
437:
438:            /** Get homeAddress2.
439:             *
440:             * @return homeAddress2   String
441:             */
442:            public String getHomeAddress2() {
443:                return homeAddress2;
444:            }
445:
446:            /** Get homeRegion.
447:             *
448:             * @return homeRegion   String
449:             */
450:            public String getHomeRegion() {
451:                return homeRegion;
452:            }
453:
454:            /** Get homeProvince.
455:             *
456:             * @return homeProvince   String
457:             */
458:            public String getHomeProvince() {
459:                return homeProvince;
460:            }
461:
462:            /**
463:             * Get  businessStreet. 
464:             * 
465:             * @return businessStreet  String 
466:             */
467:            public String getBusinessStreet() {
468:                return businessStreet;
469:            }
470:
471:            /**
472:             * Get  businessCity.
473:             * 
474:             * @return businessCity  String 
475:             */
476:            public String getBusinessCity() {
477:                return businessCity;
478:            }
479:
480:            /**
481:             * Get  businessState
482:             * 
483:             * @return businessState  String 
484:             */
485:            public String getBusinessState() {
486:                return businessState;
487:            }
488:
489:            /**
490:             * Get  businessZip.
491:             * 
492:             * @return businessZip  String 
493:             */
494:            public String getBusinessZip() {
495:                return businessZip;
496:            }
497:
498:            /**
499:             * Get  businessCountry.
500:             * 
501:             * @return businessCountry  String 
502:             */
503:            public String getBusinessCountry() {
504:                return businessCountry;
505:            }
506:
507:            /** Get businessAddress1.
508:             *
509:             * @return businessAddress1   String
510:             */
511:            public String getBusinessAddress1() {
512:                return businessAddress1;
513:            }
514:
515:            /** Get businessAddress2.
516:             *
517:             * @return businessAddress2   String
518:             */
519:            public String getBusinessAddress2() {
520:                return businessAddress2;
521:            }
522:
523:            /** Get businessRegion.
524:             *
525:             * @return businessRegion   String
526:             */
527:            public String getBusinessRegion() {
528:                return businessRegion;
529:            }
530:
531:            /** Get businessProvince.
532:             *
533:             * @return businessProvince   String
534:             */
535:            public String getBusinessProvince() {
536:                return businessProvince;
537:            }
538:
539:            /**
540:             * Get home page uri.
541:             * 
542:             * @return uri  String 
543:             */
544:            public String getUri() {
545:                return uri;
546:            }
547:
548:            /**
549:             * Set date of birth.
550:             * 
551:             * @param value   the dob String
552:             */
553:            public void setDob(String value) {
554:                dob = value;
555:            }
556:
557:            /**
558:             * Set email.
559:             * 
560:             * @param value   the em String
561:             */
562:            public void setEm(String value) {
563:                em = value;
564:            }
565:
566:            /**
567:             * Set fax phone.
568:             * 
569:             * @param value   the fp String
570:             */
571:            public void setFp(String value) {
572:                fp = value;
573:            }
574:
575:            /**
576:             * Set first name.
577:             * 
578:             * @param value   the fn String
579:             */
580:            public void setFn(String value) {
581:                fn = value;
582:            }
583:
584:            /**
585:             * Set home phone.
586:             * 
587:             * @param value   the hp String
588:             */
589:            public void setHp(String value) {
590:                hp = value;
591:            }
592:
593:            /**
594:             * Set last name.
595:             * 
596:             * @param value   the ln String
597:             */
598:            public void setLn(String value) {
599:                ln = value;
600:            }
601:
602:            /**
603:             * Set honorifics.
604:             * 
605:             * @param value   the honorifics
606:             */
607:            public void setHonorifics(String value) {
608:                honorifics = value;
609:            }
610:
611:            /**
612:             * Set title.
613:             * 
614:             * @param value   the title string
615:             */
616:            public void setTitle(String value) {
617:                title = value;
618:            }
619:
620:            /**
621:             * Set Address Book this entry belongs to.
622:             * 
623:             * @param value   the memberofpab String
624:             */
625:            public void setMemberofpab(String value) {
626:                memberofpab = value;
627:            }
628:
629:            /**
630:             * Set Group this entry belongs to.
631:             * 
632:             * @param value   the memberofpabgroup String
633:             */
634:            public void setMemberofpabgroup(String value) {
635:                memberofpabgroup = value;
636:            }
637:
638:            /**
639:             * Set mobile phone. 
640:             * 
641:             * @param value   the mp String
642:             */
643:            public void setMp(String value) {
644:                mp = value;
645:            }
646:
647:            /**
648:             * Set pager phone.
649:             * 
650:             * @param value   the pp String
651:             */
652:            public void setPp(String value) {
653:                pp = value;
654:            }
655:
656:            /**
657:             * Set business phone.
658:             * 
659:             * @param value   the bp String
660:             */
661:            public void setBp(String value) {
662:                bp = value;
663:            }
664:
665:            /**
666:             * Set sms Id.
667:             * 
668:             * @param value   the smsId String
669:             */
670:            public void setSmsId(String value) {
671:                smsId = value;
672:            }
673:
674:            /**
675:             * Set homeStreet. 
676:             * 
677:             * @param value   the homeStreet String
678:             */
679:            public void setHomeStreet(String value) {
680:                homeStreet = value;
681:            }
682:
683:            /**
684:             * Set homeCity.
685:             * 
686:             * @param value   the homeCity String
687:             */
688:            public void setHomeCity(String value) {
689:                homeCity = value;
690:            }
691:
692:            /**
693:             * Set homeState.
694:             * 
695:             * @param value   the homeState String
696:             */
697:            public void setHomeState(String value) {
698:                homeState = value;
699:            }
700:
701:            /**
702:             * Set homeZip.
703:             * 
704:             * @param value   the homeZip String
705:             */
706:            public void setHomeZip(String value) {
707:                homeZip = value;
708:            }
709:
710:            /**
711:             * Set homeCountry.
712:             * 
713:             * @param value   the homeCountry String
714:             */
715:            public void setHomeCountry(String value) {
716:                homeCountry = value;
717:            }
718:
719:            /** Set homeAddress1.
720:             *
721:             * @param value   HomeAddress 1
722:             */
723:            public void setHomeAddress1(String value) {
724:                homeAddress1 = value;
725:            }
726:
727:            /** Set homeAddress2.
728:             *
729:             * @param value   HomeAddress 2
730:             */
731:            public void setHomeAddress2(String value) {
732:                homeAddress2 = value;
733:            }
734:
735:            /** Set homeRegion.
736:             *
737:             * @param value   homeRegion
738:             */
739:            public void setHomeRegion(String value) {
740:                homeRegion = value;
741:            }
742:
743:            /** Set homeProvince.
744:             *
745:             * @param value   homeProvince
746:             */
747:            public void setHomeProvince(String value) {
748:                homeProvince = value;
749:            }
750:
751:            /**
752:             * Set businessStreet. 
753:             * 
754:             * @param value   the businessStreet String
755:             */
756:            public void setBusinessStreet(String value) {
757:                businessStreet = value;
758:            }
759:
760:            /**
761:             * Set businessCity.
762:             * 
763:             * @param value   the businessCity String
764:             */
765:            public void setBusinessCity(String value) {
766:                businessCity = value;
767:            }
768:
769:            /**
770:             * Set businessState.
771:             * 
772:             * @param value   the businessState String
773:             */
774:            public void setBusinessState(String value) {
775:                businessState = value;
776:            }
777:
778:            /**
779:             * Set businessZip.
780:             * 
781:             * @param value   the businessZip String
782:             */
783:            public void setBusinessZip(String value) {
784:                businessZip = value;
785:            }
786:
787:            /**
788:             * Set businessCountry.
789:             * 
790:             * @param value   the businessCountry String
791:             */
792:            public void setBusinessCountry(String value) {
793:                businessCountry = value;
794:            }
795:
796:            /** Set businessAddress1.
797:             *
798:             * @param value   BusinessAddress 1
799:             */
800:            public void setBusinessAddress1(String value) {
801:                businessAddress1 = value;
802:            }
803:
804:            /** Set businessAddress2.
805:             *
806:             * @param value   BusinessAddress 2
807:             */
808:            public void setBusinessAddress2(String value) {
809:                businessAddress2 = value;
810:            }
811:
812:            /** Set businessRegion.
813:             *
814:             * @param value   businessRegion
815:             */
816:            public void setBusinessRegion(String value) {
817:                businessRegion = value;
818:            }
819:
820:            /** Set businessProvince.
821:             *
822:             * @param value   businessProvince
823:             */
824:            public void setBusinessProvince(String value) {
825:                businessProvince = value;
826:            }
827:
828:            /**
829:             * Set home page uri.
830:             * 
831:             * @param value   the uri String
832:             */
833:            public void setUri(String value) {
834:                uri = value;
835:            }
836:
837:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.