1 | /*
|
---|
2 | * To change this template, choose Tools | Templates
|
---|
3 | * and open the template in the editor.
|
---|
4 | */
|
---|
5 | package gov.hhs.fha.nhinc.mpilib;
|
---|
6 |
|
---|
7 | import org.apache.commons.logging.Log;
|
---|
8 | import org.apache.commons.logging.LogFactory;
|
---|
9 |
|
---|
10 | /**
|
---|
11 | *
|
---|
12 | * @author rayj
|
---|
13 | */
|
---|
14 | public class PersonName implements java.io.Serializable {
|
---|
15 | private static Log log = LogFactory.getLog(PersonName.class);
|
---|
16 | private String lastName = "";
|
---|
17 | private String firstName = "";
|
---|
18 | private String middleName = "";
|
---|
19 |
|
---|
20 | public PersonName() {
|
---|
21 | log.debug("PersonName Initialized");
|
---|
22 | }
|
---|
23 | public PersonName(String lastname , String firstname) {
|
---|
24 | this.setLastName(lastname);
|
---|
25 | this.setFirstName(firstname);
|
---|
26 | }
|
---|
27 | public String getMiddleName()
|
---|
28 | {
|
---|
29 | if (middleName == null) {
|
---|
30 | middleName = "";
|
---|
31 | }
|
---|
32 | return middleName;
|
---|
33 | }
|
---|
34 | public String getMiddleInitial()
|
---|
35 | {
|
---|
36 | if (middleName == null) {
|
---|
37 | middleName = "";
|
---|
38 | }
|
---|
39 | return middleName.substring(0, 0);
|
---|
40 | }
|
---|
41 |
|
---|
42 | public void setMiddleName(String middle)
|
---|
43 | {
|
---|
44 | middleName = middle;
|
---|
45 | }
|
---|
46 | public String getLastName() {
|
---|
47 | if (lastName == null) {
|
---|
48 | lastName = "";
|
---|
49 | }
|
---|
50 | return lastName;
|
---|
51 | }
|
---|
52 |
|
---|
53 | public void setLastName(String LastName) {
|
---|
54 | this.lastName = LastName;
|
---|
55 | }
|
---|
56 |
|
---|
57 | public String getFirstName() {
|
---|
58 | if (firstName == null) {
|
---|
59 | firstName = "";
|
---|
60 | }
|
---|
61 | return firstName;
|
---|
62 | }
|
---|
63 |
|
---|
64 | public void setFirstName(String FirstName) {
|
---|
65 | this.firstName = FirstName;
|
---|
66 | }
|
---|
67 | }
|
---|