001 package ca.uhn.hl7v2.conf.spec;
002
003 /**
004 * Part of a specification that defines application behavior and IDs
005 * for other parts of the spec.
006 * @author Bryan Tripp
007 */
008 public class Conformance {
009
010 /** Holds value of property acceptAck. */
011 private String acceptAck;
012
013 /** Utility field used by bound properties. */
014 private java.beans.PropertyChangeSupport propertyChangeSupport = new java.beans.PropertyChangeSupport(this);
015
016 /** Utility field used by constrained properties. */
017 private java.beans.VetoableChangeSupport vetoableChangeSupport = new java.beans.VetoableChangeSupport(this);
018
019 /** Holds value of property applicationAck. */
020 private String applicationAck;
021
022 /** Holds value of property staticID. */
023 private String staticID;
024
025 /** Holds value of property dnamicID. */
026 private String dnamicID;
027
028 /** Holds value of property msgAckMode. */
029 private String msgAckMode;
030
031 /** Creates a new instance of Conformance */
032 public Conformance() {
033 }
034
035 /** Adds a PropertyChangeListener to the listener list.
036 * @param l The listener to add.
037 */
038 public void addPropertyChangeListener(java.beans.PropertyChangeListener l) {
039 propertyChangeSupport.addPropertyChangeListener(l);
040 }
041
042 /** Removes a PropertyChangeListener from the listener list.
043 * @param l The listener to remove.
044 */
045 public void removePropertyChangeListener(java.beans.PropertyChangeListener l) {
046 propertyChangeSupport.removePropertyChangeListener(l);
047 }
048
049 /** Adds a VetoableChangeListener to the listener list.
050 * @param l The listener to add.
051 */
052 public void addVetoableChangeListener(java.beans.VetoableChangeListener l) {
053 vetoableChangeSupport.addVetoableChangeListener(l);
054 }
055
056 /** Removes a VetoableChangeListener from the listener list.
057 * @param l The listener to remove.
058 */
059 public void removeVetoableChangeListener(java.beans.VetoableChangeListener l) {
060 vetoableChangeSupport.removeVetoableChangeListener(l);
061 }
062
063 /** Getter for property acceptAck.
064 * @return Value of property acceptAck.
065 */
066 public String getAcceptAck() {
067 return this.acceptAck;
068 }
069
070 /** Setter for property acceptAck.
071 * @param acceptAck New value of property acceptAck.
072 *
073 * @throws PropertyVetoException
074 */
075 public void setAcceptAck(String acceptAck) throws java.beans.PropertyVetoException {
076 String oldAcceptAck = this.acceptAck;
077 vetoableChangeSupport.fireVetoableChange("acceptAck", oldAcceptAck, acceptAck);
078 this.acceptAck = acceptAck;
079 propertyChangeSupport.firePropertyChange("acceptAck", oldAcceptAck, acceptAck);
080 }
081
082 /** Getter for property applicationAck.
083 * @return Value of property applicationAck.
084 */
085 public String getApplicationAck() {
086 return this.applicationAck;
087 }
088
089 /** Setter for property applicationAck.
090 * @param applicationAck New value of property applicationAck.
091 *
092 * @throws PropertyVetoException
093 */
094 public void setApplicationAck(String applicationAck) throws java.beans.PropertyVetoException {
095 String oldApplicationAck = this.applicationAck;
096 vetoableChangeSupport.fireVetoableChange("applicationAck", oldApplicationAck, applicationAck);
097 this.applicationAck = applicationAck;
098 propertyChangeSupport.firePropertyChange("applicationAck", oldApplicationAck, applicationAck);
099 }
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 }