1 55 package org.jboss.axis.wsdl.toJava; 56 57 import org.jboss.axis.wsdl.symbolTable.TypeEntry; 58 59 import java.io.IOException ; 60 import java.io.PrintWriter ; 61 import java.util.Vector ; 62 63 68 public class JavaBeanFaultWriter extends JavaBeanWriter 69 { 70 80 protected JavaBeanFaultWriter(Emitter emitter, 81 TypeEntry type, 82 Vector elements, 83 TypeEntry extendType, 84 Vector attributes, 85 JavaWriter helper) 86 { 87 super(emitter, type, elements, 88 extendType, attributes, helper); 89 90 enableDefaultConstructor = true; 95 96 enableFullConstructor = true; 98 99 enableSetters = true; 101 } 103 108 protected String getExtendsText() 109 { 110 String extendsText = super.getExtendsText(); 112 if (extendsText.equals("")) 113 { 114 extendsText = " extends org.jboss.axis.AxisFault "; 117 } 118 return extendsText; 119 } 120 121 126 protected void writeFileFooter(PrintWriter pw) throws IOException 127 { 128 134 pw.println(); 136 pw.println(" /**"); 137 pw.println(" * Writes the exception data to the faultDetails"); 138 pw.println(" */"); 139 pw.println(" public void writeDetails(javax.xml.namespace.QName qname, org.jboss.axis.encoding.SerializationContext context) throws java.io.IOException {"); 140 pw.println(" context.serialize(qname, null, this);"); 141 pw.println(" }"); 142 143 super.writeFileFooter(pw); 144 } } | Popular Tags |