org.springframework.beans.propertyeditors
Class PropertiesEditor
java.lang.Object
   java.beans.PropertyEditorSupport
java.beans.PropertyEditorSupport
       org.springframework.beans.propertyeditors.PropertiesEditor
org.springframework.beans.propertyeditors.PropertiesEditor
- All Implemented Interfaces: 
- PropertyEditor
- public class PropertiesEditor 
- extends PropertyEditorSupport
Custom PropertyEditor for Properties objects.
 
Handles conversion from content String to Properties object.
 Also handles Map to Properties conversion, for populating
 a Properties object via XML "map" entries.
 
The required format is defined in the standard Properties
 documentation. Each property must be on a new line.
- Author:
- Rod Johnson, Juergen Hoeller
- See Also:
- Properties.load(java.io.Reader)
 
 
| Methods inherited from class java.beans.PropertyEditorSupport | 
| addPropertyChangeListener, firePropertyChange, getAsText, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, supportsCustomEditor | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
PropertiesEditor
public PropertiesEditor()
setAsText
public void setAsText(String text)
               throws IllegalArgumentException
- Convert StringintoProperties, considering it as
 properties content.
 
- 
- Specified by:
- setAsTextin interface- PropertyEditor
- Overrides:
- setAsTextin class- PropertyEditorSupport
 
- 
- Parameters:
- text- the text to be so converted
- Throws:
- IllegalArgumentException
 
setValue
public void setValue(Object value)
- Take Propertiesas-is; convertMapintoProperties.
 
- 
- Specified by:
- setValuein interface- PropertyEditor
- Overrides:
- setValuein class- PropertyEditorSupport
 
- 
 
Copyright © 2002-2008 The Spring Framework.