类 PropertiesEditor
- java.lang.Object
- java.beans.PropertyEditorSupport
- org.springframework.beans.propertyeditors.PropertiesEditor
- 所有已实现的接口:
PropertyEditor
public class PropertiesEditor extends PropertyEditorSupport
CustomPropertyEditor
forProperties
objects.Handles conversion from content
String
toProperties
object. Also handlesMap
toProperties
conversion, for populating aProperties
object via XML "map" entries.The required format is defined in the standard
Properties
documentation. Each property must be on a new line.- 作者:
- Rod Johnson, Juergen Hoeller
- 另请参阅:
Properties.load(java.io.Reader)
构造器概要
构造器 构造器 说明 PropertiesEditor()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
setAsText(String text)
ConvertString
intoProperties
, considering it as properties content.void
setValue(Object value)
构造器详细资料
PropertiesEditor
public PropertiesEditor()
方法详细资料
setAsText
public void setAsText(String text) throws IllegalArgumentException
ConvertString
intoProperties
, considering it as properties content.- 指定者:
setAsText
在接口中PropertyEditor
- 覆盖:
setAsText
在类中PropertyEditorSupport
- 参数:
text
- the text to be so converted- 抛出:
IllegalArgumentException
setValue
public void setValue(Object value)
- 指定者:
setValue
在接口中PropertyEditor
- 覆盖:
setValue
在类中PropertyEditorSupport