Coverage Report - ca.uhn.hl7v2.conf.spec.MetaData
 
Classes in this File Line Coverage Branch Coverage Complexity
MetaData
0%
0/57
N/A
1.667
 
 1  
 package ca.uhn.hl7v2.conf.spec;
 2  
 
 3  
 import ca.uhn.hl7v2.conf.ProfileException;
 4  
 
 5  
 /**
 6  
  * Conformance Profile meta data (an element of ConformanceProfile and StaticDef).  
 7  
  * @author Bryan Tripp
 8  
  */
 9  
 public class MetaData {
 10  
     
 11  
     /** Holds value of property name. */
 12  
     private String name;
 13  
     
 14  
     /** Utility field used by bound properties. */
 15  0
     private java.beans.PropertyChangeSupport propertyChangeSupport =  new java.beans.PropertyChangeSupport(this);
 16  
     
 17  
     /** Utility field used by constrained properties. */
 18  0
     private java.beans.VetoableChangeSupport vetoableChangeSupport =  new java.beans.VetoableChangeSupport(this);
 19  
     
 20  
     /** Holds value of property orgName. */
 21  
     private String orgName;
 22  
     
 23  
     /** Holds value of property version. */
 24  
     private String version;
 25  
     
 26  
     /** Holds value of property status. */
 27  
     private String status;
 28  
     
 29  
     /** Holds value of property topics. */
 30  
     private String topics;
 31  
     
 32  
     /** Creates a new instance of MetaData */
 33  0
     public MetaData() {
 34  0
     }
 35  
     
 36  
     /** Adds a PropertyChangeListener to the listener list.
 37  
      * @param l The listener to add.
 38  
      */
 39  
     public void addPropertyChangeListener(java.beans.PropertyChangeListener l) {
 40  0
         propertyChangeSupport.addPropertyChangeListener(l);
 41  0
     }    
 42  
     
 43  
     /** Removes a PropertyChangeListener from the listener list.
 44  
      * @param l The listener to remove.
 45  
      */
 46  
     public void removePropertyChangeListener(java.beans.PropertyChangeListener l) {
 47  0
         propertyChangeSupport.removePropertyChangeListener(l);
 48  0
     }    
 49  
     
 50  
     /** Adds a VetoableChangeListener to the listener list.
 51  
      * @param l The listener to add.
 52  
      */
 53  
     public void addVetoableChangeListener(java.beans.VetoableChangeListener l) {
 54  0
         vetoableChangeSupport.addVetoableChangeListener(l);
 55  0
     }
 56  
     
 57  
     /** Removes a VetoableChangeListener from the listener list.
 58  
      * @param l The listener to remove.
 59  
      */
 60  
     public void removeVetoableChangeListener(java.beans.VetoableChangeListener l) {
 61  0
         vetoableChangeSupport.removeVetoableChangeListener(l);
 62  0
     }
 63  
     
 64  
     /** Getter for property name.
 65  
      * @return Value of property name.
 66  
      */
 67  
     public String getName() {
 68  0
         return this.name;
 69  
     }
 70  
     
 71  
     /** Setter for property name.
 72  
      * @param name New value of property name.
 73  
      *
 74  
      * @throws ProfileException
 75  
      */
 76  
     public void setName(String name) throws ProfileException {
 77  0
         String oldName = this.name;
 78  
         try {
 79  0
             vetoableChangeSupport.fireVetoableChange("name", oldName, name);
 80  0
         } catch (Exception e) {
 81  0
             throw new ProfileException(null, e);
 82  0
         }
 83  0
         this.name = name;
 84  0
         propertyChangeSupport.firePropertyChange("name", oldName, name);
 85  0
     }
 86  
     
 87  
     /** Getter for property orgName.
 88  
      * @return Value of property orgName.
 89  
      */
 90  
     public String getOrgName() {
 91  0
         return this.orgName;
 92  
     }
 93  
     
 94  
     /** Setter for property orgName.
 95  
      * @param orgName New value of property orgName.
 96  
      *
 97  
      * @throws ProfileException
 98  
      */
 99  
     public void setOrgName(String orgName) throws ProfileException {
 100  0
         String oldOrgName = this.orgName;
 101  
         try {
 102  0
             vetoableChangeSupport.fireVetoableChange("orgName", oldOrgName, orgName);
 103  0
         } catch (Exception e) {
 104  0
             throw new ProfileException(null, e);
 105  0
         }
 106  0
         this.orgName = orgName;
 107  0
         propertyChangeSupport.firePropertyChange("orgName", oldOrgName, orgName);
 108  0
     }
 109  
     
 110  
     /** Getter for property version.
 111  
      * @return Value of property version.
 112  
      */
 113  
     public String getVersion() {
 114  0
         return this.version;
 115  
     }
 116  
     
 117  
     /** Setter for property version.
 118  
      * @param version New value of property version.
 119  
      *
 120  
      * @throws ProfileException
 121  
      */
 122  
     public void setVersion(String version) throws ProfileException {
 123  0
         String oldVersion = this.version;
 124  
         try {
 125  0
             vetoableChangeSupport.fireVetoableChange("version", oldVersion, version);
 126  0
         } catch (Exception e) {
 127  0
             throw new ProfileException(null, e);
 128  0
         }
 129  0
         this.version = version;
 130  0
         propertyChangeSupport.firePropertyChange("version", oldVersion, version);
 131  0
     }
 132  
     
 133  
     /** Getter for property status.
 134  
      * @return Value of property status.
 135  
      */
 136  
     public String getStatus() {
 137  0
         return this.status;
 138  
     }
 139  
     
 140  
     /** Setter for property status.
 141  
      * @param status New value of property status.
 142  
      *
 143  
      * @throws ProfileException
 144  
      */
 145  
     public void setStatus(String status) throws ProfileException {
 146  0
         String oldStatus = this.status;
 147  
         try {
 148  0
             vetoableChangeSupport.fireVetoableChange("status", oldStatus, status);
 149  0
         } catch (Exception e) {
 150  0
             throw new ProfileException(null, e);
 151  0
         }
 152  0
         this.status = status;
 153  0
         propertyChangeSupport.firePropertyChange("status", oldStatus, status);
 154  0
     }
 155  
     
 156  
     /** Getter for property topics.
 157  
      * @return Value of property topics.
 158  
      */
 159  
     public String getTopics() {
 160  0
         return this.topics;
 161  
     }
 162  
     
 163  
     /** Setter for property topics.
 164  
      * @param topics New value of property topics.
 165  
      *
 166  
      * @throws ProfileException
 167  
      */
 168  
     public void setTopics(String topics) throws ProfileException {
 169  0
         String oldTopics = this.topics;
 170  
         try {
 171  0
             vetoableChangeSupport.fireVetoableChange("topics", oldTopics, topics);
 172  0
         } catch (Exception e) {
 173  0
             throw new ProfileException(null, e);
 174  0
         }
 175  0
         this.topics = topics;
 176  0
         propertyChangeSupport.firePropertyChange("topics", oldTopics, topics);
 177  0
     }
 178  
     
 179  
 }