Fields Summary |
---|
public static final byte | IN |
public static final byte | OUT |
public static final byte | INOUT |
private transient QName | nameThe Parameter's XML QName |
public org.apache.axis.wsdl.symbolTable.TypeEntry | typeEntryA TypeEntry corresponding to this parameter |
private byte | modeThe Parameter mode (in, out, inout) |
private QName | typeQNameThe XML type of this parameter |
private Class | javaTypeThe Java type of this parameter |
private int | orderThe order of this parameter (-1 indicates unordered) |
private boolean | isReturnIndicates if this ParameterDesc represents a return or normal parameter |
private String | mimeTypeMIME type for this parameter, if there is one |
private QName | itemQNameIf this ParamDesc represents a literal array, this QName will
determine if it gets written as a "bare" or a "wrapped" schema. |
private QName | itemType |
private boolean | inHeaderIndicates whether input/output values are stored in the header |
private boolean | outHeader |
private String | documentationThe documentation for the parameter |
private boolean | omittableIndicates whether this parameter may be omitted or not (i.e., it has minOccurs="0") |
private boolean | nillableIndicates whether this parameter is nillable |
Constructors Summary |
---|
public ParameterDesc()
|
public ParameterDesc(ParameterDesc copy)Constructor-copy
name = copy.name;
typeEntry = copy.typeEntry;
mode = copy.mode;
typeQName = copy.typeQName;
javaType = copy.javaType;
order = copy.order;
isReturn = copy.isReturn;
mimeType = copy.mimeType;
inHeader = copy.inHeader;
outHeader = copy.outHeader;
|
public ParameterDesc(QName name, byte mode, QName typeQName)Constructor
this.name = name;
this.mode = mode;
this.typeQName = typeQName;
|
public ParameterDesc(QName name, byte mode, QName typeQName, Class javaType, boolean inHeader, boolean outHeader)"Complete" constructor, suitable for usage in skeleton code
this(name,mode,typeQName);
this.javaType = javaType;
this.inHeader = inHeader;
this.outHeader = outHeader;
|
public ParameterDesc(QName name, byte mode, QName typeQName, Class javaType)
this(name,mode,typeQName,javaType,false,false);
|
Methods Summary |
---|
public java.lang.String | getDocumentation()get the documentation for the parameter
return documentation;
|
public boolean | getIsReturn()Indicates ParameterDesc represents return of OperationDesc
return isReturn;
|
public javax.xml.namespace.QName | getItemQName()
return itemQName;
|
public javax.xml.namespace.QName | getItemType()
return itemType;
|
public java.lang.Class | getJavaType()Get the java type (note that this is javaType in the signature.)
return javaType;
|
public byte | getMode()
return mode;
|
public static java.lang.String | getModeAsString(byte mode)
if (mode == INOUT) {
return "inout";
} else if (mode == OUT) {
return "out";
} else if (mode == IN) {
return "in";
}
throw new IllegalArgumentException(
Messages.getMessage("badParameterMode", Byte.toString(mode)));
|
public java.lang.String | getName()
if (name == null) {
return null;
}
else {
return name.getLocalPart();
}
|
public int | getOrder()
return order;
|
public javax.xml.namespace.QName | getQName()
return name;
|
public javax.xml.namespace.QName | getTypeQName()
return typeQName;
|
public boolean | isInHeader()
return this.inHeader;
|
public boolean | isNillable()Indicates whether this parameter is nillable or not.
return nillable;
|
public boolean | isOmittable()Indicates if this parameter is omittable or not (i.e., if it
has a minimum occurrence of 0).
return omittable;
|
public boolean | isOutHeader()
return this.outHeader;
|
public static byte | modeFromString(java.lang.String modeStr)Get a mode constant from a string. Defaults to IN, and returns
OUT or INOUT if the string matches (ignoring case).
byte ret = IN;
if (modeStr == null) {
return IN;
} else if (modeStr.equalsIgnoreCase("out")) {
ret = OUT;
} else if (modeStr.equalsIgnoreCase("inout")) {
ret = INOUT;
}
return ret;
|
private void | readObject(java.io.ObjectInputStream in)
if (in.readBoolean()) {
name = new QName((String)in.readObject(),
(String)in.readObject());
} else {
name = null;
}
if (in.readBoolean()) {
typeQName = new QName((String)in.readObject(),
(String)in.readObject());
} else {
typeQName = null;
}
in.defaultReadObject();
|
public void | setDocumentation(java.lang.String documentation)set the documentation for the parameter
this.documentation = documentation;
|
public void | setInHeader(boolean value)
this.inHeader = value;
|
public void | setIsReturn(boolean value)Set to true to indicate return parameter of OperationDesc
isReturn = value;
|
public void | setItemQName(javax.xml.namespace.QName itemQName)
this.itemQName = itemQName;
|
public void | setItemType(javax.xml.namespace.QName itemType)
this.itemType = itemType;
|
public void | setJavaType(java.lang.Class javaType)Set the java type (note that this is javaType in the signature.)
// The javaType must match the mode. A Holder is expected for OUT/INOUT
// parameters that don't represent the return type.
if (javaType != null) {
if ((mode == IN || isReturn) &&
javax.xml.rpc.holders.Holder.class.isAssignableFrom(javaType) ||
mode != IN && !isReturn &&
!javax.xml.rpc.holders.Holder.class.isAssignableFrom(javaType)) {
throw new IllegalArgumentException(
Messages.getMessage("setJavaTypeErr00",
javaType.getName(),
getModeAsString(mode)));
}
}
this.javaType = javaType;
|
public void | setMode(byte mode)
this.mode = mode;
|
public void | setName(java.lang.String name)
this.name = new QName("", name);
|
public void | setNillable(boolean nillable)Indicate if this parameter is nillable.
this.nillable = nillable;
|
public void | setOmittable(boolean omittable)Indicate if this parameter is omittable or not (i.e., if it
has a minimum occurrence of 0).
this.omittable = omittable;
|
public void | setOrder(int order)
this.order = order;
|
public void | setOutHeader(boolean value)
this.outHeader = value;
|
public void | setQName(javax.xml.namespace.QName name)
this.name = name;
|
public void | setTypeQName(javax.xml.namespace.QName typeQName)
this.typeQName = typeQName;
|
public java.lang.String | toString()
return toString("");
|
public java.lang.String | toString(java.lang.String indent)
String text="";
text+=indent + "name: " + name + "\n";
text+=indent + "typeEntry: " + typeEntry + "\n";
text+=indent + "mode: " + (mode == IN ?
"IN" : mode == INOUT ?
"INOUT" : "OUT") + "\n";
text+=indent + "position: " + order + "\n";
text+=indent + "isReturn: " + isReturn + "\n";
text+=indent + "typeQName: " + typeQName + "\n";
text+=indent + "javaType: " + javaType + "\n";
text+=indent + "inHeader: " + inHeader + "\n";
text+=indent + "outHeader: " + outHeader+ "\n";
return text;
|
private void | writeObject(java.io.ObjectOutputStream out)
if (name == null) {
out.writeBoolean(false);
} else {
out.writeBoolean(true);
out.writeObject(name.getNamespaceURI());
out.writeObject(name.getLocalPart());
}
if (typeQName == null) {
out.writeBoolean(false);
} else {
out.writeBoolean(true);
out.writeObject(typeQName.getNamespaceURI());
out.writeObject(typeQName.getLocalPart());
}
out.defaultWriteObject();
|