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:
1.3 KB
|
Rev | Line | |
---|
[507] | 1 | package gov.hhs.fha.nhinc.subscription.repository.data;
|
---|
| 2 |
|
---|
| 3 | /**
|
---|
| 4 | * Data object for a subscription filter topic expression
|
---|
| 5 | *
|
---|
| 6 | * @author Neil Webb
|
---|
| 7 | */
|
---|
| 8 | public class TopicExpression
|
---|
| 9 | {
|
---|
| 10 | private String dialect;
|
---|
| 11 | private String topicExpressionValue;
|
---|
| 12 |
|
---|
| 13 | public String getTopicExpressionValue()
|
---|
| 14 | {
|
---|
| 15 | return topicExpressionValue;
|
---|
| 16 | }
|
---|
| 17 |
|
---|
| 18 | public void setTopicExpressionValue(String topicExpressionValue)
|
---|
| 19 | {
|
---|
| 20 | this.topicExpressionValue = topicExpressionValue;
|
---|
| 21 | }
|
---|
| 22 |
|
---|
| 23 | public String getDialect()
|
---|
| 24 | {
|
---|
| 25 | return dialect;
|
---|
| 26 | }
|
---|
| 27 |
|
---|
| 28 | public void setDialect(String dialect)
|
---|
| 29 | {
|
---|
| 30 | this.dialect = dialect;
|
---|
| 31 | }
|
---|
| 32 |
|
---|
| 33 | @Override
|
---|
| 34 | public boolean equals(Object obj)
|
---|
| 35 | {
|
---|
| 36 | if (obj == null)
|
---|
| 37 | {
|
---|
| 38 | return false;
|
---|
| 39 | }
|
---|
| 40 | if (getClass() != obj.getClass())
|
---|
| 41 | {
|
---|
| 42 | return false;
|
---|
| 43 | }
|
---|
| 44 | final TopicExpression other = (TopicExpression) obj;
|
---|
| 45 | if (this.dialect != other.dialect && (this.dialect == null || !this.dialect.equals(other.dialect)))
|
---|
| 46 | {
|
---|
| 47 | return false;
|
---|
| 48 | }
|
---|
| 49 | if (this.topicExpressionValue != other.topicExpressionValue && (this.topicExpressionValue == null || !this.topicExpressionValue.equals(other.topicExpressionValue)))
|
---|
| 50 | {
|
---|
| 51 | return false;
|
---|
| 52 | }
|
---|
| 53 | return true;
|
---|
| 54 | }
|
---|
| 55 |
|
---|
| 56 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.