The SimpleWebServiceParameter class holds the meta-data as well as the
data itself for a single input/output parameter for a web service method
as read from the defaults or the servlet request.
The input/output parameters for a web service can be primitive or
complex (embedded Javabean).
In case of a complex type, the 'class' member variable used is "XList.class"
and the value is an instance of XList. An instance of XList holds a list
of SimpleWebServiceParameters.
The default SimpleWebServiceParameter Constructor takes either an
XList instance or the String representation of the primitive type.
In the case of primitive types, no validation is performed at the time of
construction to check if the String value provided is legal or not.
This String value can be retrieved using the method getFormValue() and
can be used to display to the user the values entered in the form or
in the defaults.
The String value that has been converted to the correct primitive
object can be obtained using the getValue() method. This method
throws an IllegalParameterException if the conversion of the String
to the correct format fails.
|