View Javadoc

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