public class PropertiesEditor
extends java.beans.PropertyEditorSupport
Handles conversion from content <code>String</code> to Properties
object.
Also handles <code>Map</code> 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.
Properties.load(java.io.Reader)
Constructor and Description |
---|
PropertiesEditor() |
Modifier and Type | Method and Description |
---|---|
void |
setAsText(java.lang.String text)
Convert <code>String</code> into <code>Properties</code>, considering it as
properties content.
|
void |
setValue(java.lang.Object value)
Take <code>Properties</code> as-is; convert <code>Map</code> into
Properties . |
public void setAsText(java.lang.String text) throws java.lang.IllegalArgumentException
setAsText
in interface java.beans.PropertyEditor
setAsText
in class java.beans.PropertyEditorSupport
text
- the text to be so convertedjava.lang.IllegalArgumentException
public void setValue(java.lang.Object value)
Properties
.setValue
in interface java.beans.PropertyEditor
setValue
in class java.beans.PropertyEditorSupport