public class PropertiesEditor
extends java.beans.PropertyEditorSupport
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.
Properties.load(java.io.Reader)
Constructor and Description |
---|
PropertiesEditor() |
Modifier and Type | Method and Description |
---|---|
void |
setAsText(java.lang.String text)
Convert
String into Properties , considering it as
properties content. |
void |
setValue(java.lang.Object value)
Take
Properties as-is; convert Map into Properties . |
public void setAsText(@Nullable java.lang.String text) throws java.lang.IllegalArgumentException
String
into Properties
, considering it as
properties content.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
as-is; convert Map
into Properties
.setValue
in interface java.beans.PropertyEditor
setValue
in class java.beans.PropertyEditorSupport