View Javadoc
1   package ca.uhn.hl7v2.conf.spec;
2   
3   import java.beans.PropertyVetoException;
4   
5   /**
6    * Part of a specification that defines application behavior and IDs 
7    * for other parts of the spec.   
8    * @author Bryan Tripp
9    */
10  public class Conformance {
11      
12      /** Holds value of property acceptAck. */
13      private String acceptAck;
14      
15      /** Utility field used by bound properties. */
16      private final java.beans.PropertyChangeSupport propertyChangeSupport =  new java.beans.PropertyChangeSupport(this);
17      
18      /** Utility field used by constrained properties. */
19      private final java.beans.VetoableChangeSupport vetoableChangeSupport =  new java.beans.VetoableChangeSupport(this);
20      
21      /** Holds value of property applicationAck. */
22      private String applicationAck;
23      
24      /** Holds value of property staticID. */
25      private String staticID;
26      
27      /** Holds value of property dnamicID. */
28      private String dnamicID;
29      
30      /** Holds value of property msgAckMode. */
31      private String msgAckMode;
32      
33      /** Creates a new instance of Conformance */
34      public Conformance() {
35      }
36      
37      /** Adds a PropertyChangeListener to the listener list.
38       * @param l The listener to add.
39       */
40      public void addPropertyChangeListener(java.beans.PropertyChangeListener l) {
41          propertyChangeSupport.addPropertyChangeListener(l);
42      }
43      
44      /** Removes a PropertyChangeListener from the listener list.
45       * @param l The listener to remove.
46       */
47      public void removePropertyChangeListener(java.beans.PropertyChangeListener l) {
48          propertyChangeSupport.removePropertyChangeListener(l);
49      }
50      
51      /** Adds a VetoableChangeListener to the listener list.
52       * @param l The listener to add.
53       */
54      public void addVetoableChangeListener(java.beans.VetoableChangeListener l) {
55          vetoableChangeSupport.addVetoableChangeListener(l);
56      }
57      
58      /** Removes a VetoableChangeListener from the listener list.
59       * @param l The listener to remove.
60       */
61      public void removeVetoableChangeListener(java.beans.VetoableChangeListener l) {
62          vetoableChangeSupport.removeVetoableChangeListener(l);
63      }
64      
65      /** Getter for property acceptAck.
66       * @return Value of property acceptAck.
67       */
68      public String getAcceptAck() {
69          return this.acceptAck;
70      }
71      
72      /** Setter for property acceptAck.
73       * @param acceptAck New value of property acceptAck.
74       *
75       * @throws PropertyVetoException
76       */
77      public void setAcceptAck(String acceptAck) throws PropertyVetoException {
78          String oldAcceptAck = this.acceptAck;
79          vetoableChangeSupport.fireVetoableChange("acceptAck", oldAcceptAck, acceptAck);
80          this.acceptAck = acceptAck;
81          propertyChangeSupport.firePropertyChange("acceptAck", oldAcceptAck, acceptAck);
82      }
83      
84      /** Getter for property applicationAck.
85       * @return Value of property applicationAck.
86       */
87      public String getApplicationAck() {
88          return this.applicationAck;
89      }
90      
91      /** Setter for property applicationAck.
92       * @param applicationAck New value of property applicationAck.
93       *
94       * @throws PropertyVetoException
95       */
96      public void setApplicationAck(String applicationAck) throws PropertyVetoException {
97          String oldApplicationAck = this.applicationAck;
98          vetoableChangeSupport.fireVetoableChange("applicationAck", oldApplicationAck, applicationAck);
99          this.applicationAck = applicationAck;
100         propertyChangeSupport.firePropertyChange("applicationAck", oldApplicationAck, applicationAck);
101     }
102     
103     /** Getter for property staticID.
104      * @return Value of property staticID.
105      */
106     public String getStaticID() {
107         return this.staticID;
108     }
109     
110     /** Setter for property staticID.
111      * @param staticID New value of property staticID.
112      *
113      * @throws PropertyVetoException
114      */
115     public void setStaticID(String staticID) throws PropertyVetoException {
116         String oldStaticID = this.staticID;
117         vetoableChangeSupport.fireVetoableChange("staticID", oldStaticID, staticID);
118         this.staticID = staticID;
119         propertyChangeSupport.firePropertyChange("staticID", oldStaticID, staticID);
120     }
121     
122     /** Getter for property dnamicID.
123      * @return Value of property dnamicID.
124      */
125     public String getDnamicID() {
126         return this.dnamicID;
127     }
128     
129     /** Setter for property dnamicID.
130      * @param dnamicID New value of property dnamicID.
131      *
132      * @throws PropertyVetoException
133      */
134     public void setDnamicID(String dnamicID) throws PropertyVetoException {
135         String oldDnamicID = this.dnamicID;
136         vetoableChangeSupport.fireVetoableChange("dnamicID", oldDnamicID, dnamicID);
137         this.dnamicID = dnamicID;
138         propertyChangeSupport.firePropertyChange("dnamicID", oldDnamicID, dnamicID);
139     }
140     
141     /** Getter for property msgAckMode.
142      * @return Value of property msgAckMode.
143      */
144     public String getMsgAckMode() {
145         return this.msgAckMode;
146     }
147     
148     /** Setter for property msgAckMode.
149      * @param msgAckMode New value of property msgAckMode.
150      *
151      * @throws PropertyVetoException
152      */
153     public void setMsgAckMode(String msgAckMode) throws PropertyVetoException {
154         String oldMsgAckMode = this.msgAckMode;
155         vetoableChangeSupport.fireVetoableChange("msgAckMode", oldMsgAckMode, msgAckMode);
156         this.msgAckMode = msgAckMode;
157         propertyChangeSupport.firePropertyChange("msgAckMode", oldMsgAckMode, msgAckMode);
158     }
159     
160 }