public class ClassArrayEditor
extends java.beans.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.
| Constructor and Description |
|---|
ClassArrayEditor()
Create a default
ClassEditor, using the thread
context ClassLoader. |
ClassArrayEditor(java.lang.ClassLoader classLoader)
Create a default
ClassArrayEditor, using the given
ClassLoader. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAsText() |
void |
setAsText(java.lang.String text) |
public ClassArrayEditor()
ClassEditor, using the thread
context ClassLoader.public ClassArrayEditor(java.lang.ClassLoader classLoader)
ClassArrayEditor, using the given
ClassLoader.classLoader - the ClassLoader to use
(or pass null for the thread context ClassLoader)public void setAsText(java.lang.String text)
throws java.lang.IllegalArgumentException
setAsText in interface java.beans.PropertyEditorsetAsText in class java.beans.PropertyEditorSupportjava.lang.IllegalArgumentExceptionpublic java.lang.String getAsText()
getAsText in interface java.beans.PropertyEditorgetAsText in class java.beans.PropertyEditorSupport