Package org.apache.xbean.propertyeditor
Class PropertyEditorConverter
- java.lang.Object
-
- java.beans.PropertyEditorSupport
-
- org.apache.xbean.propertyeditor.AbstractConverter
-
- org.apache.xbean.propertyeditor.PropertyEditorConverter
-
- All Implemented Interfaces:
java.beans.PropertyEditor,Converter
public class PropertyEditorConverter extends AbstractConverter
-
-
Constructor Summary
Constructors Constructor Description PropertyEditorConverter(java.lang.Class<?> type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjecttoObjectImpl(java.lang.String text)Converts the supplied text in to an instance of the editor type.java.lang.StringtoStringImpl(java.lang.Object value)Converts the supplied object to text.-
Methods inherited from class org.apache.xbean.propertyeditor.AbstractConverter
getAsText, getType, getValue, setAsText, setValue, toObject, toString
-
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, isPaintable, paintValue, removePropertyChangeListener, setSource, supportsCustomEditor
-
-
-
-
Constructor Detail
-
PropertyEditorConverter
public PropertyEditorConverter(java.lang.Class<?> type)
-
-
Method Detail
-
toStringImpl
public java.lang.String toStringImpl(java.lang.Object value) throws PropertyEditorException
Description copied from class:AbstractConverterConverts the supplied object to text. The supplied object will always be an instance of the editor type, and specifically will never be null or a String (unless this is the String editor).- Overrides:
toStringImplin classAbstractConverter- Parameters:
value- an instance of the editor type- Returns:
- the text equivalent of the value
- Throws:
PropertyEditorException
-
toObjectImpl
public java.lang.Object toObjectImpl(java.lang.String text) throws PropertyEditorException
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
- Throws:
PropertyEditorException
-
-