1 57 58 package org.apache.wsif.wsdl.extensions.jms; 59 60 import java.io.Serializable ; 61 import java.util.ArrayList ; 62 import java.util.List ; 63 64 import javax.wsdl.extensions.ExtensibilityElement; 65 import javax.xml.namespace.QName ; 66 67 72 public class JMSFaultIndicator implements ExtensibilityElement, Serializable { 73 74 private static final long serialVersionUID = 1L; 75 76 protected QName fieldElementType = JMSConstants.Q_ELEM_JMS_FAULT_INDICATOR; 77 79 protected Boolean fieldRequired = null; 80 protected String fieldType; 81 protected List faultProperties; 82 83 86 public void setElementType(QName elementType) { 87 fieldElementType = elementType; 88 } 89 90 93 public QName getElementType() { 94 return fieldElementType; 95 } 96 97 100 public void setRequired(Boolean required) { 101 fieldRequired = required; 102 } 103 104 107 public Boolean getRequired() { 108 return fieldRequired; 109 } 110 111 115 public String getType() { 116 return fieldType; 117 } 118 119 123 public void setType(String type) { 124 this.fieldType = type; 125 } 126 127 public void addJMSFaultProperty(JMSFaultProperty jmsFaultProperty) { 128 getJMSFaultProperties().add(jmsFaultProperty); 129 } 130 131 public List getJMSFaultProperties() { 132 if (faultProperties == null) 133 faultProperties = new ArrayList (); 134 return faultProperties; 135 } 136 137 public String toString() { 138 StringBuffer strBuf = new StringBuffer (super.toString()); 139 140 strBuf.append("\nJavaAddress (" + fieldElementType + "):"); 141 strBuf.append("\nrequired=" + fieldRequired); 142 143 strBuf.append("\ntype=" + fieldType); 144 strBuf.append("\nfaultProperties=" + faultProperties); 145 146 return strBuf.toString(); 147 } 148 149 } | Popular Tags |