1 16 package org.apache.axis.wsdl.symbolTable; 17 18 import javax.xml.namespace.QName ; 19 20 23 public class Parameter { 24 25 27 28 public static final byte IN = 1; 29 30 31 public static final byte OUT = 2; 32 33 34 public static final byte INOUT = 3; 35 36 39 40 private QName qname; 41 42 44 45 private String name; 46 47 49 50 private MimeInfo mimeInfo = null; 51 52 53 private TypeEntry type; 54 55 56 private byte mode = IN; 57 58 61 62 private boolean inHeader = false; 63 64 65 private boolean outHeader = false; 66 67 68 private boolean omittable = false; 69 70 75 public String toString() { 76 77 return "(" + type + ((mimeInfo == null) 78 ? "" 79 : "(" + mimeInfo + ")") + ", " + getName() + ", " 80 + ((mode == IN) 81 ? "IN)" 82 : (mode == INOUT) 83 ? "INOUT)" 84 : "OUT)" + (inHeader 85 ? "(IN soap:header)" 86 : "") + (outHeader 87 ? "(OUT soap:header)" 88 : "")); 89 } 91 96 public QName getQName() { 97 return qname; 98 } 99 100 106 public String getName() { 107 108 if ((name == null) && (qname != null)) { 109 return qname.getLocalPart(); 110 } 111 112 return name; 113 } 114 115 121 public void setName(String name) { 122 123 this.name = name; 124 125 if (qname == null) { 126 this.qname = new QName ("", name); 127 } 128 } 129 130 135 public void setQName(QName qname) { 136 this.qname = qname; 137 } 138 139 144 public MimeInfo getMIMEInfo() { 145 return mimeInfo; 146 } 148 153 public void setMIMEInfo(MimeInfo mimeInfo) { 154 this.mimeInfo = mimeInfo; 155 } 157 162 public TypeEntry getType() { 163 return type; 164 } 165 166 171 public void setType(TypeEntry type) { 172 this.type = type; 173 } 174 175 180 public byte getMode() { 181 return mode; 182 } 183 184 191 public void setMode(byte mode) { 192 193 if (mode <= INOUT && mode >= IN) { 194 this.mode = mode; 195 } 196 } 197 198 203 public boolean isInHeader() { 204 return inHeader; 205 } 207 212 public void setInHeader(boolean inHeader) { 213 this.inHeader = inHeader; 214 } 216 221 public boolean isOutHeader() { 222 return outHeader; 223 } 225 230 public void setOutHeader(boolean outHeader) { 231 this.outHeader = outHeader; 232 } 234 public boolean isOmittable() { 235 return omittable; 236 } 237 238 public void setOmittable(boolean omittable) { 239 this.omittable = omittable; 240 } 241 } | Popular Tags |