1 16 17 package org.apache.axis.description; 18 19 import javax.xml.namespace.QName ; 20 import java.io.Serializable ; 21 import java.util.ArrayList ; 22 23 29 public class FaultDesc implements Serializable { 30 private String name; 31 private QName qname; 32 private ArrayList parameters; 33 private String className; 34 private QName xmlType; 35 private boolean complex; 36 37 40 public FaultDesc() { 41 } 42 43 46 public FaultDesc(QName qname, String className, 47 QName xmlType, boolean complex) { 48 this.qname = qname; 49 this.className = className; 50 this.xmlType = xmlType; 51 this.complex = complex; 52 } 53 54 public QName getQName() { 55 return qname; 56 } 57 58 public void setQName(QName name) { 59 this.qname = name; 60 } 61 62 public String getName() 63 { 64 return name; 65 } 66 67 public void setName(String name) 68 { 69 this.name = name; 70 } 71 72 public ArrayList getParameters() { 73 return parameters; 74 } 75 76 public void setParameters(ArrayList parameters) { 77 this.parameters = parameters; 78 } 79 80 public String getClassName() { 81 return className; 82 } 83 84 public void setClassName(String className) { 85 this.className = className; 86 } 87 88 public boolean isComplex() { 89 return complex; 90 } 91 92 public void setComplex(boolean complex) { 93 this.complex = complex; 94 } 95 96 public QName getXmlType() { 97 return xmlType; 98 } 99 100 public void setXmlType(QName xmlType) { 101 this.xmlType = xmlType; 102 } 103 104 public String toString() { 105 return toString(""); 106 } 107 public String toString(String indent) { 108 String text =""; 109 text+= indent + "name: " + getName() + "\n"; 110 text+= indent + "qname: " + getQName() + "\n"; 111 text+= indent + "type: " + getXmlType() + "\n"; 112 text+= indent + "Class: " + getClassName() + "\n"; 113 for (int i=0; parameters != null && i < parameters.size(); i++) { 114 text+= indent +" ParameterDesc[" + i + "]:\n"; 115 text+= indent + ((ParameterDesc)parameters.get(i)).toString(" ") + "\n"; 116 } 117 return text; 118 } 119 } 120 | Popular Tags |