| 1 | |
package ca.uhn.hl7v2.conf.spec.usecase; |
| 2 | |
|
| 3 | |
|
| 4 | |
|
| 5 | |
|
| 6 | |
|
| 7 | |
public class AbstractUseCaseComponent { |
| 8 | |
|
| 9 | |
|
| 10 | |
private String name; |
| 11 | |
|
| 12 | |
|
| 13 | 0 | private java.beans.PropertyChangeSupport propertyChangeSupport = new java.beans.PropertyChangeSupport(this); |
| 14 | |
|
| 15 | |
|
| 16 | 0 | private java.beans.VetoableChangeSupport vetoableChangeSupport = new java.beans.VetoableChangeSupport(this); |
| 17 | |
|
| 18 | |
|
| 19 | |
private String body; |
| 20 | |
|
| 21 | |
|
| 22 | 0 | public AbstractUseCaseComponent() { |
| 23 | 0 | } |
| 24 | |
|
| 25 | |
|
| 26 | |
|
| 27 | |
|
| 28 | |
public void addPropertyChangeListener(java.beans.PropertyChangeListener l) { |
| 29 | 0 | propertyChangeSupport.addPropertyChangeListener(l); |
| 30 | 0 | } |
| 31 | |
|
| 32 | |
|
| 33 | |
|
| 34 | |
|
| 35 | |
public void removePropertyChangeListener(java.beans.PropertyChangeListener l) { |
| 36 | 0 | propertyChangeSupport.removePropertyChangeListener(l); |
| 37 | 0 | } |
| 38 | |
|
| 39 | |
|
| 40 | |
|
| 41 | |
|
| 42 | |
public void addVetoableChangeListener(java.beans.VetoableChangeListener l) { |
| 43 | 0 | vetoableChangeSupport.addVetoableChangeListener(l); |
| 44 | 0 | } |
| 45 | |
|
| 46 | |
|
| 47 | |
|
| 48 | |
|
| 49 | |
public void removeVetoableChangeListener(java.beans.VetoableChangeListener l) { |
| 50 | 0 | vetoableChangeSupport.removeVetoableChangeListener(l); |
| 51 | 0 | } |
| 52 | |
|
| 53 | |
|
| 54 | |
|
| 55 | |
|
| 56 | |
public String getName() { |
| 57 | 0 | return this.name; |
| 58 | |
} |
| 59 | |
|
| 60 | |
|
| 61 | |
|
| 62 | |
|
| 63 | |
|
| 64 | |
|
| 65 | |
public void setName(String name) throws java.beans.PropertyVetoException { |
| 66 | 0 | String oldName = this.name; |
| 67 | 0 | vetoableChangeSupport.fireVetoableChange("name", oldName, name); |
| 68 | 0 | this.name = name; |
| 69 | 0 | propertyChangeSupport.firePropertyChange("name", oldName, name); |
| 70 | 0 | } |
| 71 | |
|
| 72 | |
|
| 73 | |
|
| 74 | |
|
| 75 | |
public String getBody() { |
| 76 | 0 | return this.body; |
| 77 | |
} |
| 78 | |
|
| 79 | |
|
| 80 | |
|
| 81 | |
|
| 82 | |
|
| 83 | |
|
| 84 | |
public void setBody(String body) throws java.beans.PropertyVetoException { |
| 85 | 0 | String oldBody = this.body; |
| 86 | 0 | vetoableChangeSupport.fireVetoableChange("body", oldBody, body); |
| 87 | 0 | this.body = body; |
| 88 | 0 | propertyChangeSupport.firePropertyChange("body", oldBody, body); |
| 89 | 0 | } |
| 90 | |
|
| 91 | |
} |