1 | package gov.hhs.fha.nhinc.connectmgr.data;
|
---|
2 |
|
---|
3 | /**
|
---|
4 | * @author Les Westberg
|
---|
5 | */
|
---|
6 | public class CMInternalConnectionInfo
|
---|
7 | {
|
---|
8 | private String homeCommunityId;
|
---|
9 | private String name;
|
---|
10 | private String description;
|
---|
11 | private CMInternalConnInfoServices services;
|
---|
12 |
|
---|
13 | /**
|
---|
14 | * Default Constructor.
|
---|
15 | */
|
---|
16 | public CMInternalConnectionInfo()
|
---|
17 | {
|
---|
18 | clear();
|
---|
19 | }
|
---|
20 |
|
---|
21 | /**
|
---|
22 | * Clear the contents of this and set it to a default state.
|
---|
23 | */
|
---|
24 | public void clear()
|
---|
25 | {
|
---|
26 | homeCommunityId = "";
|
---|
27 | name = "";
|
---|
28 | description = "";
|
---|
29 | services = null;
|
---|
30 | }
|
---|
31 |
|
---|
32 | /**
|
---|
33 | * Returns true of the contents of the object are the same as the one
|
---|
34 | * passed in.
|
---|
35 | *
|
---|
36 | * @param oCompare The object to compare.
|
---|
37 | * @return TRUE if the contents are the same as the one passed in.
|
---|
38 | */
|
---|
39 | public boolean equals(CMInternalConnectionInfo oCompare)
|
---|
40 | {
|
---|
41 | if ((!this.homeCommunityId.equals(oCompare.homeCommunityId)) ||
|
---|
42 | (!this.name.equals(oCompare.name)) ||
|
---|
43 | (!this.description.equals(oCompare.description)) ||
|
---|
44 | (!this.services.equals(oCompare.services)))
|
---|
45 | {
|
---|
46 | return false;
|
---|
47 | }
|
---|
48 |
|
---|
49 | // If we got here then everything is the same...
|
---|
50 | //----------------------------------------------
|
---|
51 | return true;
|
---|
52 | }
|
---|
53 |
|
---|
54 |
|
---|
55 |
|
---|
56 | /**
|
---|
57 | * Return the description of the connection.
|
---|
58 | *
|
---|
59 | * @return The description of the connection.
|
---|
60 | */
|
---|
61 | public String getDescription()
|
---|
62 | {
|
---|
63 | return description;
|
---|
64 | }
|
---|
65 |
|
---|
66 | /**
|
---|
67 | * Set the description of the connection.
|
---|
68 | *
|
---|
69 | * @param description The description of the connection.
|
---|
70 | */
|
---|
71 | public void setDescription(String description)
|
---|
72 | {
|
---|
73 | this.description = description;
|
---|
74 | }
|
---|
75 |
|
---|
76 | /**
|
---|
77 | * Return the home community ID associated with this connection.
|
---|
78 | *
|
---|
79 | * @return The home community ID associated with this connection.
|
---|
80 | */
|
---|
81 | public String getHomeCommunityId()
|
---|
82 | {
|
---|
83 | return homeCommunityId;
|
---|
84 | }
|
---|
85 |
|
---|
86 | /**
|
---|
87 | * Set the home community ID associated with this connection.
|
---|
88 | *
|
---|
89 | * @param homeCommunityId The home community ID associated with this connection.
|
---|
90 | */
|
---|
91 | public void setHomeCommunityId(String homeCommunityId)
|
---|
92 | {
|
---|
93 | this.homeCommunityId = homeCommunityId;
|
---|
94 | }
|
---|
95 |
|
---|
96 | /**
|
---|
97 | * Return the name of this home community.
|
---|
98 | *
|
---|
99 | * @return The name of this home community.
|
---|
100 | */
|
---|
101 | public String getName()
|
---|
102 | {
|
---|
103 | return name;
|
---|
104 | }
|
---|
105 |
|
---|
106 | /**
|
---|
107 | * Sets the name of this home community.
|
---|
108 | *
|
---|
109 | * @param name The name of this home community.
|
---|
110 | */
|
---|
111 | public void setName(String name)
|
---|
112 | {
|
---|
113 | this.name = name;
|
---|
114 | }
|
---|
115 |
|
---|
116 | /**
|
---|
117 | * Return the services associated with this home community.
|
---|
118 | *
|
---|
119 | * @return The services associated with this home community.
|
---|
120 | */
|
---|
121 | public CMInternalConnInfoServices getServices()
|
---|
122 | {
|
---|
123 | return services;
|
---|
124 | }
|
---|
125 |
|
---|
126 | /**
|
---|
127 | * Sets the services associated with this home community.
|
---|
128 | *
|
---|
129 | * @param services The services associated with this home community.
|
---|
130 | */
|
---|
131 | public void setServices(CMInternalConnInfoServices services)
|
---|
132 | {
|
---|
133 | this.services = services;
|
---|
134 | }
|
---|
135 |
|
---|
136 | }
|
---|