View Javadoc

1   package ca.uhn.hl7v2.model.primitive;
2   
3   import ca.uhn.hl7v2.model.Message;
4   
5   /**
6    * Base class for an ID type which also stores a namespace string
7    */
8   @SuppressWarnings("serial")
9   public class ISWithNamespace extends IS {
10  
11  	private String myNamespace;
12  	private String myHl7Version;
13  
14  	/**
15  	 * Constructor
16  	 */
17  	public ISWithNamespace(Message theMessage, String theHl7Version, String theNamespace, int theTable) {
18  		super(theMessage, theTable);
19  		myHl7Version = theHl7Version;
20  		myNamespace = theNamespace;
21  	}
22  
23  
24  	/**
25  	 * Constructor
26  	 */
27  	public ISWithNamespace(Message theMessage, String theHl7Version, String theNamespace, Integer theTable) {
28  		super(theMessage, theTable);
29  		myHl7Version = theHl7Version;
30  		myNamespace = theNamespace;
31  	}
32  
33  
34  	/**
35  	 * {@inheritDoc}
36  	 */
37  	@Override
38  	public String getName() {
39  		return "IS";
40  	}
41  
42  
43  	/**
44  	 * Returns the HL7 version associated with this type instance
45  	 */
46  	public String getVersion() {
47  		return myHl7Version;
48  	}
49  
50  	/**
51  	 * @return Returns the namespace associated with the table for this type
52  	 */
53  	public String getTableNamespace() {
54  		return myNamespace;
55  	}
56  	
57  }