| 1 | |
package ca.uhn.hl7v2.conf.spec.message; |
| 2 | |
|
| 3 | |
import ca.uhn.hl7v2.conf.ProfileException; |
| 4 | |
import ca.uhn.hl7v2.conf.spec.MetaData; |
| 5 | |
|
| 6 | |
|
| 7 | |
|
| 8 | |
|
| 9 | |
|
| 10 | |
|
| 11 | |
|
| 12 | |
|
| 13 | |
|
| 14 | |
|
| 15 | |
|
| 16 | |
|
| 17 | |
|
| 18 | |
|
| 19 | |
|
| 20 | |
|
| 21 | |
|
| 22 | |
|
| 23 | |
|
| 24 | |
|
| 25 | |
public class StaticDef extends AbstractSegmentContainer { |
| 26 | |
|
| 27 | |
private MetaData metaData; |
| 28 | |
private String msgType; |
| 29 | |
private String eventType; |
| 30 | |
private String msgStructID; |
| 31 | |
private String orderControl; |
| 32 | |
private String eventDesc; |
| 33 | |
private String identifier; |
| 34 | |
private String role; |
| 35 | |
|
| 36 | |
|
| 37 | 75 | private java.beans.PropertyChangeSupport propertyChangeSupport = new java.beans.PropertyChangeSupport(this); |
| 38 | |
|
| 39 | |
|
| 40 | 75 | private java.beans.VetoableChangeSupport vetoableChangeSupport = new java.beans.VetoableChangeSupport(this); |
| 41 | |
|
| 42 | |
|
| 43 | 75 | public StaticDef() { |
| 44 | 75 | } |
| 45 | |
|
| 46 | |
|
| 47 | |
|
| 48 | |
|
| 49 | |
public void addPropertyChangeListener(java.beans.PropertyChangeListener l) { |
| 50 | 0 | propertyChangeSupport.addPropertyChangeListener(l); |
| 51 | 0 | } |
| 52 | |
|
| 53 | |
|
| 54 | |
|
| 55 | |
|
| 56 | |
public void removePropertyChangeListener(java.beans.PropertyChangeListener l) { |
| 57 | 0 | propertyChangeSupport.removePropertyChangeListener(l); |
| 58 | 0 | } |
| 59 | |
|
| 60 | |
|
| 61 | |
|
| 62 | |
|
| 63 | |
public void addVetoableChangeListener(java.beans.VetoableChangeListener l) { |
| 64 | 0 | vetoableChangeSupport.addVetoableChangeListener(l); |
| 65 | 0 | } |
| 66 | |
|
| 67 | |
|
| 68 | |
|
| 69 | |
|
| 70 | |
public void removeVetoableChangeListener(java.beans.VetoableChangeListener l) { |
| 71 | 0 | vetoableChangeSupport.removeVetoableChangeListener(l); |
| 72 | 0 | } |
| 73 | |
|
| 74 | |
|
| 75 | |
|
| 76 | |
|
| 77 | |
public MetaData getMetaData() { |
| 78 | 0 | return this.metaData; |
| 79 | |
} |
| 80 | |
|
| 81 | |
|
| 82 | |
|
| 83 | |
|
| 84 | |
|
| 85 | |
|
| 86 | |
public void setMetaData(MetaData metaData) throws ProfileException { |
| 87 | 75 | MetaData oldMetaData = this.metaData; |
| 88 | |
try { |
| 89 | 75 | vetoableChangeSupport.fireVetoableChange("metaData", oldMetaData, metaData); |
| 90 | 0 | } catch (Exception e) { |
| 91 | 0 | throw new ProfileException(null, e); |
| 92 | 75 | } |
| 93 | 75 | this.metaData = metaData; |
| 94 | 75 | propertyChangeSupport.firePropertyChange("metaData", oldMetaData, metaData); |
| 95 | 75 | } |
| 96 | |
|
| 97 | |
|
| 98 | |
|
| 99 | |
|
| 100 | |
public String getMsgType() { |
| 101 | 110 | return this.msgType; |
| 102 | |
} |
| 103 | |
|
| 104 | |
|
| 105 | |
|
| 106 | |
|
| 107 | |
|
| 108 | |
|
| 109 | |
public void setMsgType(String msgType) throws ProfileException { |
| 110 | 75 | String oldMsgType = this.msgType; |
| 111 | |
try { |
| 112 | 75 | vetoableChangeSupport.fireVetoableChange("msgType", oldMsgType, msgType); |
| 113 | 0 | } catch (Exception e) { |
| 114 | 0 | throw new ProfileException(null, e); |
| 115 | 75 | } |
| 116 | 75 | this.msgType = msgType; |
| 117 | 75 | propertyChangeSupport.firePropertyChange("msgType", oldMsgType, msgType); |
| 118 | 75 | } |
| 119 | |
|
| 120 | |
|
| 121 | |
|
| 122 | |
|
| 123 | |
public String getEventType() { |
| 124 | 135 | return this.eventType; |
| 125 | |
} |
| 126 | |
|
| 127 | |
|
| 128 | |
|
| 129 | |
|
| 130 | |
|
| 131 | |
|
| 132 | |
public void setEventType(String eventType) throws ProfileException { |
| 133 | 75 | String oldEventType = this.eventType; |
| 134 | |
try { |
| 135 | 75 | vetoableChangeSupport.fireVetoableChange("eventType", oldEventType, eventType); |
| 136 | 0 | } catch (Exception e) { |
| 137 | 0 | throw new ProfileException(null, e); |
| 138 | 75 | } |
| 139 | 75 | this.eventType = eventType; |
| 140 | 75 | propertyChangeSupport.firePropertyChange("eventType", oldEventType, eventType); |
| 141 | 75 | } |
| 142 | |
|
| 143 | |
|
| 144 | |
|
| 145 | |
|
| 146 | |
public String getMsgStructID() { |
| 147 | 110 | return this.msgStructID; |
| 148 | |
} |
| 149 | |
|
| 150 | |
|
| 151 | |
|
| 152 | |
|
| 153 | |
|
| 154 | |
|
| 155 | |
public void setMsgStructID(String msgStructID) throws ProfileException { |
| 156 | 75 | String oldMsgStructID = this.msgStructID; |
| 157 | |
try { |
| 158 | 75 | vetoableChangeSupport.fireVetoableChange("msgStructID", oldMsgStructID, msgStructID); |
| 159 | 0 | } catch (Exception e) { |
| 160 | 0 | throw new ProfileException(null, e); |
| 161 | 75 | } |
| 162 | 75 | this.msgStructID = msgStructID; |
| 163 | 75 | propertyChangeSupport.firePropertyChange("msgStructID", oldMsgStructID, msgStructID); |
| 164 | 75 | } |
| 165 | |
|
| 166 | |
|
| 167 | |
|
| 168 | |
|
| 169 | |
public String getOrderControl() { |
| 170 | 0 | return this.orderControl; |
| 171 | |
} |
| 172 | |
|
| 173 | |
|
| 174 | |
|
| 175 | |
|
| 176 | |
|
| 177 | |
|
| 178 | |
public void setOrderControl(String orderControl) throws ProfileException { |
| 179 | 75 | String oldOrderControl = this.orderControl; |
| 180 | |
try { |
| 181 | 75 | vetoableChangeSupport.fireVetoableChange("orderControl", oldOrderControl, orderControl); |
| 182 | 0 | } catch (Exception e) { |
| 183 | 0 | throw new ProfileException(null, e); |
| 184 | 75 | } |
| 185 | 75 | this.orderControl = orderControl; |
| 186 | 75 | propertyChangeSupport.firePropertyChange("orderControl", oldOrderControl, orderControl); |
| 187 | 75 | } |
| 188 | |
|
| 189 | |
|
| 190 | |
|
| 191 | |
|
| 192 | |
public String getEventDesc() { |
| 193 | 5 | return this.eventDesc; |
| 194 | |
} |
| 195 | |
|
| 196 | |
|
| 197 | |
|
| 198 | |
|
| 199 | |
|
| 200 | |
|
| 201 | |
public void setEventDesc(String eventDesc) throws ProfileException { |
| 202 | 75 | String oldEventDesc = this.eventDesc; |
| 203 | |
try { |
| 204 | 75 | vetoableChangeSupport.fireVetoableChange("eventDesc", oldEventDesc, eventDesc); |
| 205 | 0 | } catch (Exception e) { |
| 206 | 0 | throw new ProfileException(null, e); |
| 207 | 75 | } |
| 208 | 75 | this.eventDesc = eventDesc; |
| 209 | 75 | propertyChangeSupport.firePropertyChange("eventDesc", oldEventDesc, eventDesc); |
| 210 | 75 | } |
| 211 | |
|
| 212 | |
|
| 213 | |
|
| 214 | |
|
| 215 | |
public String getIdentifier() { |
| 216 | 105 | return this.identifier; |
| 217 | |
} |
| 218 | |
|
| 219 | |
|
| 220 | |
|
| 221 | |
|
| 222 | |
|
| 223 | |
|
| 224 | |
public void setIdentifier(String identifier) throws ProfileException { |
| 225 | 75 | String oldIdentifier = this.identifier; |
| 226 | |
try { |
| 227 | 75 | vetoableChangeSupport.fireVetoableChange("identifier", oldIdentifier, identifier); |
| 228 | 0 | } catch (Exception e) { |
| 229 | 0 | throw new ProfileException(null, e); |
| 230 | 75 | } |
| 231 | 75 | this.identifier = identifier; |
| 232 | 75 | propertyChangeSupport.firePropertyChange("identifier", oldIdentifier, identifier); |
| 233 | 75 | } |
| 234 | |
|
| 235 | |
|
| 236 | |
|
| 237 | |
|
| 238 | |
public String getRole() { |
| 239 | 0 | return this.role; |
| 240 | |
} |
| 241 | |
|
| 242 | |
|
| 243 | |
|
| 244 | |
|
| 245 | |
|
| 246 | |
|
| 247 | |
public void setRole(String role) throws ProfileException { |
| 248 | 75 | String oldRole = this.role; |
| 249 | |
try { |
| 250 | 75 | vetoableChangeSupport.fireVetoableChange("role", oldRole, role); |
| 251 | 0 | } catch (Exception e) { |
| 252 | 0 | throw new ProfileException(null, e); |
| 253 | 75 | } |
| 254 | 75 | this.role = role; |
| 255 | 75 | propertyChangeSupport.firePropertyChange("role", oldRole, role); |
| 256 | 75 | } |
| 257 | |
|
| 258 | |
} |