Class ClassArrayConverter

java.lang.Object
jodd.typeconverter.impl.ArrayConverter<Class>
jodd.typeconverter.impl.ClassArrayConverter
All Implemented Interfaces:
TypeConverter<Class[]>

public class ClassArrayConverter extends ArrayConverter<Class>
Converts given object to Class array. Conversion rules:
  • null value is returned as null
  • object of destination type is simply casted
  • single Class is wrapped in 1-length array
  • string value is converted to string array (from CSV format) and then each element is converted
This converter supports custom syntax for defining array of classes in a String:
  • The following chars are delimiters: ,;\n.
  • Blank lines are ignored
  • Lines that starts with '#' (after trim) are ignored.