1 55 package org.jboss.axis.wsdl.symbolTable; 56 57 import javax.xml.namespace.QName ; 58 59 62 public class Parameter 63 { 64 65 public static final byte IN = 1; 67 public static final byte OUT = 2; 68 public static final byte INOUT = 3; 69 70 private QName qname; 73 74 private String name; 76 77 private MimeInfo mimeInfo = null; 79 80 private TypeEntry type; 81 private byte mode = IN; 82 83 private boolean inHeader = false; 86 private boolean outHeader = false; 87 88 public String toString() 89 { 90 return "(" + type 91 + (mimeInfo == null ? "" : "(" + mimeInfo + ")") 92 + ", " + getName() + ", " 93 + (mode == IN ? "IN)" : mode == INOUT ? "INOUT)" : "OUT)" 94 + (inHeader ? "(IN soap:header)" : "") 95 + (outHeader ? "(OUT soap:header)" : "")); 96 } 98 101 public QName getQName() 102 { 103 return qname; 104 } 105 106 110 public String getName() 111 { 112 if (name == null && qname != null) 113 { 114 return qname.getLocalPart(); 115 } 116 return name; 117 } 118 119 123 public void setName(String name) 124 { 125 this.name = name; 126 if (qname == null) 127 this.qname = new QName ("", name); 128 } 129 130 133 public void setQName(QName qname) 134 { 135 this.qname = qname; 136 } 137 138 141 public MimeInfo getMIMEInfo() 142 { 143 return mimeInfo; 144 } 146 149 public void setMIMEInfo(MimeInfo mimeInfo) 150 { 151 this.mimeInfo = mimeInfo; 152 } 154 157 public TypeEntry getType() 158 { 159 return type; 160 } 161 162 165 public void setType(TypeEntry type) 166 { 167 this.type = type; 168 } 169 170 173 public byte getMode() 174 { 175 return mode; 176 } 177 178 183 public void setMode(byte mode) 184 { 185 if (mode <= INOUT & mode >= IN) 186 { 187 this.mode = mode; 188 } 189 } 190 191 194 public boolean isInHeader() 195 { 196 return inHeader; 197 } 199 202 public void setInHeader(boolean inHeader) 203 { 204 this.inHeader = inHeader; 205 } 207 210 public boolean isOutHeader() 211 { 212 return outHeader; 213 } 215 218 public void setOutHeader(boolean outHeader) 219 { 220 this.outHeader = outHeader; 221 } } | Popular Tags |