Package org.apache.xbean.propertyeditor
Class ConstructorConverter
- java.lang.Object
-
- java.beans.PropertyEditorSupport
-
- org.apache.xbean.propertyeditor.AbstractConverter
-
- org.apache.xbean.propertyeditor.ConstructorConverter
-
- All Implemented Interfaces:
java.beans.PropertyEditor,Converter
public class ConstructorConverter extends AbstractConverter
-
-
Constructor Summary
Constructors Constructor Description ConstructorConverter(java.lang.Class type, java.lang.reflect.Constructor constructor)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ConstructorConvertereditor(java.lang.Class type)protected java.lang.ObjecttoObjectImpl(java.lang.String text)Converts the supplied text in to an instance of the editor type.-
Methods inherited from class org.apache.xbean.propertyeditor.AbstractConverter
getAsText, getType, getValue, setAsText, setValue, toObject, toString, toStringImpl
-
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, isPaintable, paintValue, removePropertyChangeListener, setSource, supportsCustomEditor
-
-
-
-
Constructor Detail
-
ConstructorConverter
public ConstructorConverter(java.lang.Class type, java.lang.reflect.Constructor constructor)
-
-
Method Detail
-
toObjectImpl
protected java.lang.Object toObjectImpl(java.lang.String text)
Description copied from class:AbstractConverterConverts the supplied text in to an instance of the editor type. The text will never be null, and trim() will already have been called.- Specified by:
toObjectImplin classAbstractConverter- Parameters:
text- the text to convert- Returns:
- an instance of the editor type
-
editor
public static ConstructorConverter editor(java.lang.Class type)
-
-