org.springframework.beans.propertyeditors
Class PropertiesEditor

java.lang.Object
  |
  +--java.beans.PropertyEditorSupport
        |
        +--org.springframework.beans.propertyeditors.PropertiesEditor

public class PropertiesEditor
extends PropertyEditorSupport

Editor for java.util.Properties objects. Handles conversion from String to Properties object.

This editor must be registered before it will be available. Standard editors in this package are automatically registered by BeanWrapperImpl.

The required format is defined in java.util.Properties documentation. Each property must be on a new line.

Author:
Rod Johnson
Version: $Id: PropertiesEditor.java,v 1.4 2004/02/04 17:52:31 jhoeller Exp $
See Also: BeanWrapperImpl, java.util.Properties.load(java.io.InputStream)

Field Summary
 final static StringCOMMENT_MARKERS
          Any of these characters, if they're first after whitespace or first on a line, mean that the line is a comment and should be ignored.

Method Summary
 voidsetAsText(String text)
           

Methods inherited from class java.beans.PropertyEditorSupport
firePropertyChange, isPaintable, supportsCustomEditor, getCustomEditor, addPropertyChangeListener, removePropertyChangeListener, getValue, setValue, getAsText, getJavaInitializationString, getTags, paintValue

Methods inherited from class java.lang.Object
hashCode, notify, notifyAll, wait, wait, wait, getClass, equals, toString

Field Detail

COMMENT_MARKERS

public final static String COMMENT_MARKERS
Any of these characters, if they're first after whitespace or first on a line, mean that the line is a comment and should be ignored.
Method Detail

setAsText

public void setAsText(String text)
throws java.lang.IllegalArgumentException

Association Links

to Class java.lang.String

Any of these characters, if they're first after whitespace or first on a line, mean that the line is a comment and should be ignored.