org.springframework.beans.propertyeditors

## 类 PropertiesEditor

- java.lang.Object
- - java.beans.PropertyEditorSupport
  - - org.springframework.beans.propertyeditors.PropertiesEditor

- 所有已实现的接口:
    PropertyEditor

      public class PropertiesEditor
      extends PropertyEditorSupport

  Custom `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.

  作者:
    Rod Johnson, Juergen Hoeller
  另请参阅:
    `Properties.load(java.io.Reader)`

- - ### 构造器概要

    构造器
    构造器和说明
    `PropertiesEditor()`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `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`.

    - ### 从类继承的方法 java.beans.PropertyEditorSupport

      `addPropertyChangeListener, firePropertyChange, getAsText, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, supportsCustomEditor`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### PropertiesEditor

          public PropertiesEditor()

  - ### 方法详细资料

    - #### setAsText

          public void setAsText(@Nullable
                                String text)
                         throws IllegalArgumentException

      Convert `String` into `Properties`, considering it as properties content.
      指定者:
        `setAsText` 在接口中 `PropertyEditor`
      覆盖:
        `setAsText` 在类中 `PropertyEditorSupport`
      参数:
        `text` - the text to be so converted
      抛出:
        `IllegalArgumentException`

    - #### setValue

          public void setValue(Object value)

      Take `Properties` as-is; convert `Map` into `Properties`.
      指定者:
        `setValue` 在接口中 `PropertyEditor`
      覆盖:
        `setValue` 在类中 `PropertyEditorSupport`