Class InternetAddressEditor
- java.lang.Object
- java.beans.PropertyEditorSupport
- org.springframework.mail.javamail.InternetAddressEditor
- All Implemented Interfaces:
PropertyEditor
public class InternetAddressEditor extends PropertyEditorSupport
Editor forjava.mail.internet.InternetAddress
, to directly populate an InternetAddress property.Expects the same syntax as InternetAddress's constructor with a String argument. Converts empty Strings into null values.
- Since:
- 1.2.3
- Author:
- Juergen Hoeller
- See Also:
InternetAddress
Constructor Summary
Constructors Constructor Description InternetAddressEditor()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAsText()
void
setAsText(String text)
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
Constructor Detail
InternetAddressEditor
public InternetAddressEditor()
Method Detail
setAsText
public void setAsText(String text) throws IllegalArgumentException
- Specified by:
setAsText
in interfacePropertyEditor
- Overrides:
setAsText
in classPropertyEditorSupport
- Throws:
IllegalArgumentException
getAsText
public String getAsText()
- Specified by:
getAsText
in interfacePropertyEditor
- Overrides:
getAsText
in classPropertyEditorSupport