1 55 56 package org.jboss.axis.description; 57 58 import javax.xml.namespace.QName ; 59 import java.util.ArrayList ; 60 61 67 public class FaultDesc 68 { 69 private String name; 70 private QName qname; 71 private ArrayList parameters; 72 private String className; 73 private QName xmlType; 74 private boolean complex; 75 76 79 public FaultDesc() 80 { 81 } 82 83 86 public FaultDesc(QName qname, String className, 87 QName xmlType, boolean complex) 88 { 89 this.qname = qname; 90 this.className = className; 91 this.xmlType = xmlType; 92 this.complex = complex; 93 } 94 95 public QName getQName() 96 { 97 return qname; 98 } 99 100 public void setQName(QName name) 101 { 102 this.qname = name; 103 } 104 105 public String getName() 106 { 107 return name; 108 } 109 110 public void setName(String name) 111 { 112 this.name = name; 113 } 114 115 public ArrayList getParameters() 116 { 117 return parameters; 118 } 119 120 public void setParameters(ArrayList parameters) 121 { 122 this.parameters = parameters; 123 } 124 125 public String getClassName() 126 { 127 return className; 128 } 129 130 public void setClassName(String className) 131 { 132 this.className = className; 133 } 134 135 public boolean isComplex() 136 { 137 return complex; 138 } 139 140 public void setComplex(boolean complex) 141 { 142 this.complex = complex; 143 } 144 145 public QName getXmlType() 146 { 147 return xmlType; 148 } 149 150 public void setXmlType(QName xmlType) 151 { 152 this.xmlType = xmlType; 153 } 154 155 public String toString() 156 { 157 return toString(""); 158 } 159 160 public String toString(String indent) 161 { 162 String text = ""; 163 text += indent + "name: " + getName() + "\n"; 164 text += indent + "qname: " + getQName() + "\n"; 165 text += indent + "type: " + getXmlType() + "\n"; 166 text += indent + "Class: " + getClassName() + "\n"; 167 for (int i = 0; parameters != null && i < parameters.size(); i++) 168 { 169 text += indent + " ParameterDesc[" + i + "]:\n"; 170 text += indent + ((ParameterDesc)parameters.get(i)).toString(" ") + "\n"; 171 } 172 return text; 173 } 174 } 175 | Popular Tags |