source: ccr/trunk/nhin-vista/projects/NHINC/Current/Product/Production/Common/NhincLib/src/gov/hhs/fha/nhinc/connectmgr/data/CMInternalConnInfoService.java@ 507

Last change on this file since 507 was 507, checked in by George Lilly, 15 years ago

NHIN gateway and adaptor for use on linux with VistA EHR and RPMS

File size: 3.3 KB
Line 
1package gov.hhs.fha.nhinc.connectmgr.data;
2
3//import com.thoughtworks.xstream.annotations.XStreamAlias;
4
5/**
6 * @author Les Westberg
7 */
8public class CMInternalConnInfoService
9{
10 private String name;
11 private String description;
12 private String endpointURL;
13 private boolean externalService;
14
15 /**
16 * Default constructor.
17 */
18 public CMInternalConnInfoService()
19 {
20 clear();
21 }
22
23 /**
24 * Clear the contents of this and set it to a default state.
25 */
26 public void clear()
27 {
28 name = "";
29 description = "";
30 endpointURL = "";
31 externalService = false;
32 }
33
34 /**
35 * Returns true of the contents of the object are the same as the one
36 * passed in.
37 *
38 * @param oCompare The object to compare.
39 * @return TRUE if the contents are the same as the one passed in.
40 */
41 public boolean equals(CMInternalConnInfoService oCompare)
42 {
43 if ((!this.name.equals(oCompare.name)) ||
44 (!this.description.equals(oCompare.description)) ||
45 (!this.endpointURL.equals(oCompare.endpointURL)) ||
46 (this.externalService != oCompare.externalService))
47 {
48 return false;
49 }
50
51 // If we got here then everything is the same...
52 //----------------------------------------------
53 return true;
54 }
55
56
57
58 /**
59 * This method returns the description of the service.
60 *
61 * @return The description of the service.
62 */
63 public String getDescription()
64 {
65 return description;
66 }
67
68 /**
69 * This method sets the description of the service.
70 *
71 * @param description The description of the service.
72 */
73 public void setDescription(String description)
74 {
75 this.description = description;
76 }
77
78 /**
79 * This method returns the URL for the endpoint.
80 *
81 * @return The URL for the endpoint.
82 */
83 public String getEndpointURL()
84 {
85 return endpointURL;
86 }
87
88 /**
89 * This method sets the URL for the endpoint.
90 *
91 * @param endpointURL The URL for the endpoint.
92 */
93 public void setEndpointURL(String endpointURL)
94 {
95 this.endpointURL = endpointURL;
96 }
97
98 /**
99 * If this is true then this service is an external service meaning
100 * that it is one that is exposed to the nhin.
101 *
102 * @return Returns true if this service is exposed to the nhin.
103 */
104 public boolean isExternalService()
105 {
106 return externalService;
107 }
108
109 /**
110 * Set this to true if this service will be exposed to the nhin.
111 *
112 * @param externalService This is true if this service is exposed to the nhin.
113 */
114 public void setExternalService(boolean externalService)
115 {
116 this.externalService = externalService;
117 }
118
119 /**
120 * Return the name of this servie.
121 *
122 * @return The name of this service.
123 */
124 public String getName()
125 {
126 return name;
127 }
128
129 /**
130 * Set the name of this service.
131 *
132 * @param name The name of this service.
133 */
134 public void setName(String name)
135 {
136 this.name = name;
137 }
138
139}
Note: See TracBrowser for help on using the repository browser.