public class

PropertiesEditor

extends PropertyEditorSupport
java.lang.Object
   ↳ java.beans.PropertyEditorSupport
     ↳ org.springframework.beans.propertyeditors.PropertiesEditor

Class Overview

Custom java.beans.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.

Summary

Public Constructors
PropertiesEditor()
Public Methods
void setAsText(String text)
Convert String into Properties, considering it as properties content.
void setValue(Object value)
Take Properties as-is; convert Map into Properties.
[Expand]
Inherited Methods
From class java.beans.PropertyEditorSupport
From class java.lang.Object
From interface java.beans.PropertyEditor

Public Constructors

public PropertiesEditor ()

Also: SpringBeans

Public Methods

public void setAsText (String text)

Convert String into Properties, considering it as properties content.

Parameters
text the text to be so converted

public void setValue (Object value)

Take Properties as-is; convert Map into Properties.