org.springframework.beans.propertyeditors
Class PropertiesEditor

java.lang.Object
  extended byjava.beans.PropertyEditorSupport
      extended byorg.springframework.beans.propertyeditors.PropertiesEditor
All Implemented Interfaces:
java.beans.PropertyEditor

public class PropertiesEditor
extends java.beans.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.

Version:
$Id: PropertiesEditor.java,v 1.5 2004/03/18 02:46:13 trisberg Exp $
Author:
Rod Johnson
See Also:
BeanWrapperImpl, Properties.load(java.io.InputStream)

Field Summary
static java.lang.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.
 
Constructor Summary
PropertiesEditor()
           
 
Method Summary
 void setAsText(java.lang.String text)
           
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getAsText, getCustomEditor, getJavaInitializationString, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setValue, supportsCustomEditor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMMENT_MARKERS

public static final java.lang.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.

See Also:
Constant Field Values
Constructor Detail

PropertiesEditor

public PropertiesEditor()
Method Detail

setAsText

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


Copyright (C) 2003-2004 The Spring Framework Project.