Coverage Report - ca.uhn.hl7v2.model.primitive.ISWithNamespace
 
Classes in this File Line Coverage Branch Coverage Complexity
ISWithNamespace
0%
0/11
N/A
1
 
 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  0
                 super(theMessage, theTable);
 19  0
                 myHl7Version = theHl7Version;
 20  0
                 myNamespace = theNamespace;
 21  0
         }
 22  
 
 23  
 
 24  
         /**
 25  
          * Constructor
 26  
          */
 27  
         public ISWithNamespace(Message theMessage, String theHl7Version, String theNamespace, Integer theTable) {
 28  0
                 super(theMessage, theTable);
 29  0
                 myHl7Version = theHl7Version;
 30  0
                 myNamespace = theNamespace;
 31  0
         }
 32  
 
 33  
 
 34  
         /**
 35  
          * {@inheritDoc}
 36  
          */
 37  
         @Override
 38  
         public String getName() {
 39  0
                 return "IS";
 40  
         }
 41  
 
 42  
 
 43  
         /**
 44  
          * Returns the HL7 version associated with this type instance
 45  
          */
 46  
         public String getVersion() {
 47  0
                 return myHl7Version;
 48  
         }
 49  
 
 50  
         /**
 51  
          * @return Returns the namespace associated with the table for this type
 52  
          */
 53  
         public String getTableNamespace() {
 54  0
                 return myNamespace;
 55  
         }
 56  
         
 57  
 }