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