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