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:
970 bytes
|
Line | |
---|
1 | package gov.hhs.fha.nhinc.subscription.dte;
|
---|
2 |
|
---|
3 | import gov.hhs.fha.nhinc.common.subscription.TopicExpressionType;
|
---|
4 |
|
---|
5 | /**
|
---|
6 | * Utility to create a topic object.
|
---|
7 | *
|
---|
8 | * @author Neil Webb
|
---|
9 | */
|
---|
10 | public class TopicBuilder
|
---|
11 | {
|
---|
12 | private static final String TOPIC_VALUE_DOCUMENT = "document";
|
---|
13 | private static final String TOPIC_VALUE_CDC_BIO_PACKAGE = "nhin-cdc:CdcBioPackage";
|
---|
14 |
|
---|
15 | public static TopicExpressionType createDocumentTopic()
|
---|
16 | {
|
---|
17 | return createTopic(TOPIC_VALUE_DOCUMENT);
|
---|
18 | }
|
---|
19 |
|
---|
20 | public static TopicExpressionType createCdcBioPackageTopic()
|
---|
21 | {
|
---|
22 | return createTopic(TOPIC_VALUE_CDC_BIO_PACKAGE);
|
---|
23 | }
|
---|
24 |
|
---|
25 | private static TopicExpressionType createTopic(String topicValue)
|
---|
26 | {
|
---|
27 | TopicExpressionType topicExpression = new TopicExpressionType();
|
---|
28 | topicExpression.setDialect("http://doc.oasis-open.org/wsn/t-1/TopicExpression/Simple");
|
---|
29 | topicExpression.setValue(topicValue);
|
---|
30 | return topicExpression;
|
---|
31 | }
|
---|
32 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.