|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.mortbay.Util.ArrayConverter
Class to convert Vectors and Strings to Arrays. This class will convert Vectors and Strings to arrays. String are converted by parsing them into elements based on a separator (as passed to the constructor).
Constructor Summary | |
ArrayConverter(java.lang.String separator)
|
Method Summary | |
java.lang.Object |
convert(java.lang.Object toConvert,
java.lang.Class convertTo,
Converter context)
Try to convert a value. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public ArrayConverter(java.lang.String separator)
Method Detail |
public java.lang.Object convert(java.lang.Object toConvert, java.lang.Class convertTo, Converter context)
if (toConvert.getClass().equals(convertTo)) return toConvert;
toConvert
- Value to convertconvertTo
- Type to convert tocontext
- The context within which the converter was called.
If Converters use other Converters, this is passed as
the outermost Converter so that recursive calls have
access to all available Converters. Converter
implementations should pass this if passed null.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |