类 PropertiesEditor
- java.lang.Object
- java.beans.PropertyEditorSupport
- org.springframework.beans.propertyeditors.PropertiesEditor
- 所有已实现的接口:
PropertyEditor
public class PropertiesEditor extends PropertyEditorSupport
CustomPropertyEditorforPropertiesobjects.Handles conversion from content
StringtoPropertiesobject. Also handlesMaptoPropertiesconversion, for populating aPropertiesobject via XML "map" entries.The required format is defined in the standard
Propertiesdocumentation. Each property must be on a new line.- 作者:
- Rod Johnson, Juergen Hoeller
- 另请参阅:
Properties.load(java.io.Reader)
构造器概要
构造器 构造器 说明 PropertiesEditor()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidsetAsText(String text)ConvertStringintoProperties, considering it as properties content.voidsetValue(Object value)
构造器详细资料
PropertiesEditor
public PropertiesEditor()
方法详细资料
setAsText
public void setAsText(@Nullable String text) throws IllegalArgumentException
ConvertStringintoProperties, 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