Convert the specified input object into an output object of the
specified type.
If the value is already of type String[] then it is simply returned
unaltered.
If the value is of type int[], then a String[] is returned where each
element in the string array is the result of calling Integer.toString
on the corresponding element of the int array. This was added as a
result of bugzilla request #18297 though there is not complete
agreement that this feature should have been added.
In all other cases, this method calls toString on the input object, then
assumes the result is a comma-separated list of values. The values are
split apart into the individual items and returned as the elements of an
array. See class AbstractArrayConverter for the exact input formats
supported.
Parameters: type - is the data type to which this value should be converted.It is expected to be the class for type String[] (though this parameteris actually ignored by this method). Parameters: value - is the input value to be converted. If null then thedefault value is returned or an exception thrown if no default valueexists. the converted value exception: ConversionException - if conversion cannot be performedsuccessfully, or the input is null and there is no default value setfor this object. |