public class ClassArrayEditor extends PropertyEditorSupport
Classes, to enable
the direct population of a Class[] property without having to
use a String class name property as bridge.
Also supports "java.lang.String[]"-style array class names, in contrast
to the standard Class.forName(String) method.
| 构造器和说明 |
|---|
ClassArrayEditor()
Create a default
ClassEditor, using the thread
context ClassLoader. |
ClassArrayEditor(ClassLoader classLoader)
Create a default
ClassArrayEditor, using the given
ClassLoader. |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getAsText() |
void |
setAsText(String text) |
public ClassArrayEditor()
ClassEditor, using the thread
context ClassLoader.public ClassArrayEditor(@Nullable
ClassLoader classLoader)
ClassArrayEditor, using the given
ClassLoader.classLoader - the ClassLoader to use
(or pass null for the thread context ClassLoader)public void setAsText(String text) throws IllegalArgumentException
setAsText 在接口中 PropertyEditorsetAsText 在类中 PropertyEditorSupportIllegalArgumentExceptionpublic String getAsText()
getAsText 在接口中 PropertyEditorgetAsText 在类中 PropertyEditorSupport